toJson method
Implementation
Map<String, dynamic> toJson() => {
if (requireUppercase != null) 'requireUppercase': requireUppercase,
if (requireLowercase != null) 'requireLowercase': requireLowercase,
if (requireNonAlphanumeric != null)
'requireNonAlphanumeric': requireNonAlphanumeric,
if (requireNumeric != null) 'requireNumeric': requireNumeric,
if (minLength != null) 'minLength': minLength,
if (maxLength != null) 'maxLength': maxLength,
};