class LocationData { LocationData({ this.type, this.coordinates,}); LocationData.empty(); LocationData.fromJson(dynamic json) { type = json['type']; coordinates = json['coordinates'] != null ? json['coordinates'].cast() : []; } String? type; List? coordinates; Map toJson() { final map = {}; map['type'] = type; map['coordinates'] = coordinates; return map; } }