toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.normalizedName != null) {
    json[r'normalizedName'] = this.normalizedName;
  } else {
    json[r'normalizedName'] = null;
  }
  if (this.lineType != null) {
    json[r'lineType'] = this.lineType;
  } else {
    json[r'lineType'] = null;
  }
  if (this.isPorted != null) {
    json[r'isPorted'] = this.isPorted;
  } else {
    json[r'isPorted'] = null;
  }
  return json;
}