toJson method

Map<String, dynamic> toJson()

Serializes this Coordinates instance to a JSON-compatible map.

Used internally, not intended for direct use by consumers. The map structure may change without notice.

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> json = <String, dynamic>{};
  json['latitude'] = latitude;
  json['longitude'] = longitude;
  if (altitude != null) {
    json['altitude'] = altitude;
  }
  if (sceneobject != null) {
    json['sceneobject'] = sceneobject;
  }
  return json;
}