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: NetworkRestriction.values[result[4]! as int],
startLocation:
result[5] != null ? Point.decode(result[5]! as List<Object?>) : null,
averageBytesPerSecond: result[6] as int?,
extraOptions:
(result[7] as Map<Object?, Object?>?)?.cast<String?, Object?>(),
);
}