toJson method
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'name': name,
'type': type,
if (sensitive) 'sensitive': true,
if (encrypted) 'encrypted': true,
'options': ?options,
'relation': ?relation,
if (unique) 'unique': true,
'min': ?min,
'max': ?max,
'minLength': ?minLength,
'maxLength': ?maxLength,
'pattern': ?pattern,
};