This repository has been archived on 2024-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
ftc_patient_app/lib/models/profileData/LocationData.dart

22 lines
468 B
Dart

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