LocationBounds.fromMap constructor

LocationBounds.fromMap(
  1. JsonMap map
)

Creates from a map.

Implementation

factory LocationBounds.fromMap(JsonMap map) {
  return LocationBounds(
    southwest: Coords.fromMap(
      Map<String, dynamic>.from(map['southwest'] as Map),
    ),
    northeast: Coords.fromMap(
      Map<String, dynamic>.from(map['northeast'] as Map),
    ),
  );
}