toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "long": (long?.isNaN ?? true) ? AppConstants.demoLongitude : long,
      "lat": (lat?.isNaN ?? true) ? AppConstants.demoLatitude : lat,
      "heading": heading,
    };