Coordinates.fromJson constructor

Coordinates.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Coordinates.fromJson(Map<String, dynamic> json) => Coordinates(
      location: (
        long: json['longitude'] as double,
        lat: json['latitude'] as double
      ),
      roundablePoints: (json['roundable_point'] as List<dynamic>?)
          ?.map((e) => RoundablePoint.fromJson(e as Map<String, dynamic>))
          .toList(),
    );