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 (status != null) {
    _json[r'status'] = status;
  }
  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 (speedKnots != null) {
    _json[r'speedKnots'] = speedKnots;
  }
  if (trackTrue != null) {
    _json[r'trackTrue'] = trackTrue;
  }
  if (date != null) {
    _json[r'date'] = date;
  }
  if (variation != null) {
    _json[r'variation'] = variation;
  }
  if (variationPole != null) {
    _json[r'variationPole'] = variationPole;
  }
  if (talkerId != null) {
    _json[r'talker_id'] = talkerId;
  }
  return _json;
}