toJson method
Returns the TileCacheBudget formatted into an object
Implementation
Object toJson() {
switch (type) {
case TileCacheBudgetType.MEGABYTES:
return {"megabytes": size};
case TileCacheBudgetType.TILES:
return {"tiles": size};
}
}