fromList static method
Converts a list to MFLatLngBounds.
Implementation
@visibleForTesting
static MFLatLngBounds? fromList(Object? json) {
if (json == null) {
return null;
}
assert(json is List && json.length == 2);
final list = json as List;
return MFLatLngBounds(
southwest: MFLatLng.fromJson(list[0])!,
northeast: MFLatLng.fromJson(list[1])!,
);
}