toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'name'] = this.name;
  json[r'address'] = this.address;
  json[r'description'] = this.description;

  if (this.gateways != null) {
    json[r'gateways'] = this.gateways;
  }
  if (this.group != null) {
    json[r'group'] = this.group;
  }
  return json;
}