toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'name'] = this.name;
  json[r'trueHdg'] = this.trueHdg;
  json[r'isClosed'] = this.isClosed;
  json[r'surface'] = this.surface;
  if (this.length != null) {
    json[r'length'] = this.length;
  } else {
    json[r'length'] = null;
  }
  if (this.width != null) {
    json[r'width'] = this.width;
  } else {
    json[r'width'] = null;
  }
  if (this.location != null) {
    json[r'location'] = this.location;
  } else {
    json[r'location'] = null;
  }
  if (this.displacedThreshold != null) {
    json[r'displacedThreshold'] = this.displacedThreshold;
  } else {
    json[r'displacedThreshold'] = null;
  }
  if (this.hasLighting != null) {
    json[r'hasLighting'] = this.hasLighting;
  } else {
    json[r'hasLighting'] = null;
  }
  return json;
}