toMap method

Map toMap()

Creates a map from the coordinates properties.

Implementation

Map toMap() => {
      "latitude": this.latitude,
      "longitude": this.longitude,
    };