toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (subForm != null) {
    json[r'subForm'] = subForm;
  }
  if (irrelevant != null) {
    json[r'irrelevant'] = irrelevant;
  }
  if (determinesSscontactName != null) {
    json[r'determinesSscontactName'] = determinesSscontactName;
  }
  if (type != null) {
    json[r'type'] = type;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (sortOrder != null) {
    json[r'sortOrder'] = sortOrder;
  }
  json[r'options'] = options;
  if (descr != null) {
    json[r'descr'] = descr;
  }
  if (label != null) {
    json[r'label'] = label;
  }
  if (editor != null) {
    json[r'editor'] = editor;
  }
  json[r'defaultValue'] = defaultValue;
  if (defaultStatus != null) {
    json[r'defaultStatus'] = defaultStatus;
  }
  json[r'suggest'] = suggest;
  json[r'plannings'] = plannings;
  json[r'tags'] = tags.toList();
  json[r'codes'] = codes.toList();
  json[r'codeTypes'] = codeTypes;
  json[r'formulas'] = formulas;
  return json;
}