decode static method
Implementation
static TileRegionLoadOptions decode(Object result) {
result as List<Object?>;
return TileRegionLoadOptions(
geometry: (result[0] as Map<Object?, Object?>?)?.cast<String?, Object?>(),
descriptorsOptions:
(result[1] as List<Object?>?)?.cast<TilesetDescriptorOptions?>(),
metadata: (result[2] as Map<Object?, Object?>?)?.cast<String?, Object?>(),
acceptExpired: result[3]! as bool,
networkRestriction: result[4]! as NetworkRestriction,
startLocation: result[5] as Point?,
averageBytesPerSecond: result[6] as int?,
extraOptions:
(result[7] as Map<Object?, Object?>?)?.cast<String?, Object?>(),
);
}