toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.minLength != null) {
    json[r'minLength'] = this.minLength;
  } else {
    json[r'minLength'] = null;
  }
  if (this.maxLength != null) {
    json[r'maxLength'] = this.maxLength;
  } else {
    json[r'maxLength'] = null;
  }
  if (this.pattern != null) {
    json[r'pattern'] = this.pattern;
  } else {
    json[r'pattern'] = null;
  }
  if (this.allowedCharacters != null) {
    json[r'allowedCharacters'] = this.allowedCharacters;
  } else {
    json[r'allowedCharacters'] = null;
  }
  if (this.distinctFullNames != null) {
    json[r'distinctFullNames'] = this.distinctFullNames;
  } else {
    json[r'distinctFullNames'] = null;
  }
  return json;
}