Flutter – Get LatLong from json

Issue factory FieldModel.fromJson(String fieldId, Map<dynamic, dynamic> json) => FieldModel( fieldId: fieldId, ownerId: json[‘ownerId’], name: json[‘name’], imageUrl: json[‘imageUrl’], ///how to extract this, its a LatLng class from "google_maps_flutter_platform_interface/src/types/location.dart" latLng: json[‘latLng’], description: json[‘description’], charges: json[‘charges’], timeSlots: json[‘timeSlots’], availability: json[‘availability’], ); Error: "type

Continue reading

Flutter – Get LatLong from json

Issue factory FieldModel.fromJson(String fieldId, Map<dynamic, dynamic> json) => FieldModel( fieldId: fieldId, ownerId: json[‘ownerId’], name: json[‘name’], imageUrl: json[‘imageUrl’], ///how to extract this, its a LatLng class from "google_maps_flutter_platform_interface/src/types/location.dart" latLng: json[‘latLng’], description: json[‘description’], charges: json[‘charges’], timeSlots: json[‘timeSlots’], availability: json[‘availability’], ); Error: "type

Continue reading