toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accuracyMeters != null) 'accuracyMeters': accuracyMeters!,
      if (altitude != null) 'altitude': altitude!,
      if (gpsRecordTimestampUnixEpoch != null)
        'gpsRecordTimestampUnixEpoch': gpsRecordTimestampUnixEpoch!,
      if (heading != null) 'heading': heading!,
      if (latLngPair != null) 'latLngPair': latLngPair!,
      if (level != null) 'level': level!,
      if (pitch != null) 'pitch': pitch!,
      if (roll != null) 'roll': roll!,
    };