toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (className != null) 'className': className!,
      if (collectionElementClassName != null)
        'collectionElementClassName': collectionElementClassName!,
      if (config != null) 'config': config!,
      if (dataType != null) 'dataType': dataType!,
      if (defaultValue != null) 'defaultValue': defaultValue!,
      if (isDeprecated != null) 'isDeprecated': isDeprecated!,
      if (isOutput != null) 'isOutput': isOutput!,
      if (jsonSchema != null) 'jsonSchema': jsonSchema!,
      if (key != null) 'key': key!,
      if (protoDef != null) 'protoDef': protoDef!,
      if (required != null) 'required': required!,
      if (validationRule != null) 'validationRule': validationRule!,
    };