PointField class
PointField
The incoming data looks like this:
[
{
"type": "Point",
"coordinates":
40.433,
5.4556
},
{
"type": "Point",
"coordinates":
12.345,
5.2343
}
]
Constructors
-
PointField({required String type, required List<
double> coordinates}) -
const
-
PointField.fromJson(Map<
String, dynamic> json) -
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'
))factory
Properties
-
coordinates
→ List<
double> -
The coordinates of the PointField.
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