toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (sentence != null) {
    _json[r'sentence'] = sentence;
  }
  if (type != null) {
    _json[r'type'] = type;
  }
  if (timestamp != null) {
    _json[r'timestamp'] = timestamp;
  }
  if (lat != null) {
    _json[r'lat'] = lat;
  }
  if (latPole != null) {
    _json[r'latPole'] = latPole;
  }
  if (lon != null) {
    _json[r'lon'] = lon;
  }
  if (lonPole != null) {
    _json[r'lonPole'] = lonPole;
  }
  if (fixType != null) {
    _json[r'fixType'] = fixType;
  }
  if (numSat != null) {
    _json[r'numSat'] = numSat;
  }
  if (horDilution != null) {
    _json[r'horDilution'] = horDilution;
  }
  if (alt != null) {
    _json[r'alt'] = alt;
  }
  if (altUnit != null) {
    _json[r'altUnit'] = altUnit;
  }
  if (geoidalSep != null) {
    _json[r'geoidalSep'] = geoidalSep;
  }
  if (geoidalSepUnit != null) {
    _json[r'geoidalSepUnit'] = geoidalSepUnit;
  }
  if (differentialAge != null) {
    _json[r'differentialAge'] = differentialAge;
  }
  if (differentialRefStn != null) {
    _json[r'differentialRefStn'] = differentialRefStn;
  }
  if (talkerId != null) {
    _json[r'talker_id'] = talkerId;
  }
  return _json;
}