toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'name'] = this.name;
  json[r'serialCode'] = this.serialCode;
  json[r'status'] = this.status;
  if (this.description != null) {
    json[r'description'] = this.description;
  }

  if (this.operationalIngestionConfig != null) {
    json[r'operationalIngestionConfig'] = this.operationalIngestionConfig;
  }
  if (this.gatewayModel != null) {
    json[r'gatewayModel'] = this.gatewayModel;
  }
  if (this.plant != null) {
    json[r'plant'] = this.plant;
  }

  return json;
}