PointField.fromJson constructor
Parse the incoming json and return a PointField
Usage, assuming that u parse a incoming json source, then the runtime type is a _InternalLinkedHashMap:
PointField.fromJson(Map<String, dynamic>.from(elem'location'
))
Implementation
factory PointField.fromJson(Map<String, dynamic> json) {
/// Create a variable with the type of the Field, to reconstruct the incoming json data.
String type = json['type'];
/// Create a variable with a list of a list with coordinates.
List<double> coordinates = json['coordinates'].cast<double>();
/// Return a [MultiLineStringField] with the variables [type] and [coordinates]
return PointField(
type: type,
coordinates: coordinates
);
}