toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var type = this.type;
  var fieldId = this.fieldId;
  var issueId = this.issueId;
  var number = this.number;
  var optionId = this.optionId;
  var richText = this.richText;
  var string = this.string;
  var text = this.text;

  final json = <String, Object?>{};
  json[r'_type'] = type.value;
  json[r'fieldID'] = fieldId;
  json[r'issueID'] = issueId;
  if (number != null) {
    json[r'number'] = number;
  }
  if (optionId != null) {
    json[r'optionID'] = optionId;
  }
  if (richText != null) {
    json[r'richText'] = richText;
  }
  if (string != null) {
    json[r'string'] = string;
  }
  if (text != null) {
    json[r'text'] = text;
  }
  return json;
}