toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final maxLength = this.maxLength;
  final minLength = this.minLength;
  return {
    if (maxLength != null) 'MaxLength': maxLength,
    if (minLength != null) 'MinLength': minLength,
  };
}