toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  if (this.category != null) {
    json[r'category'] = this.category;
  } else {
    json[r'category'] = null;
  }
  if (this.categoryCode != null) {
    json[r'categoryCode'] = this.categoryCode;
  } else {
    json[r'categoryCode'] = null;
  }
  if (this.typeCode != null) {
    json[r'typeCode'] = this.typeCode;
  } else {
    json[r'typeCode'] = null;
  }
  if (this.modelName != null) {
    json[r'modelName'] = this.modelName;
  } else {
    json[r'modelName'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
    json[r'objectNames'] = this.objectNames;
  return json;
}