toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
  if (this.canonicalId != null) {
    json[r'canonical_id'] = this.canonicalId;
  } else {
    json[r'canonical_id'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.category != null) {
    json[r'category'] = this.category;
  } else {
    json[r'category'] = null;
  }
  if (this.inputType != null) {
    json[r'inputType'] = this.inputType;
  } else {
    json[r'inputType'] = null;
  }
  if (this.outputType != null) {
    json[r'outputType'] = this.outputType;
  } else {
    json[r'outputType'] = null;
  }
    json[r'metadata'] = this.metadata;
  return json;
}