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