LineStringField class

LineStringField The incoming data looks like this: [ { "type": "LineString", "coordinates": [ 40, 5 , 41, 6 ] }, { "type": "LineString", "coordinates": [ 40, 5 , 41, 6 ] } ]

Constructors

LineStringField({required String type, required List<List<double>> coordinates})
const
LineStringField.fromJson(Map<String, dynamic> json)
Parse the incoming json and return a LineStringField Usage, assuming that u parse a incoming json source, then the runtime type is a _InternalLinkedHashMap: LineStringField.fromJson(Map<String, dynamic>.from(elem'location'))
factory

Properties

coordinates List<List<double>>
The coordinates of the LineStringField.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of the Field, to reconstruct the incoming json data.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited