toJson method
Implementation
Map<String, dynamic> toJson() {
final maskCharacter = this.maskCharacter;
final maskMode = this.maskMode;
final piiEntityTypes = this.piiEntityTypes;
return {
if (maskCharacter != null) 'MaskCharacter': maskCharacter,
if (maskMode != null) 'MaskMode': maskMode.toValue(),
if (piiEntityTypes != null)
'PiiEntityTypes': piiEntityTypes.map((e) => e.toValue()).toList(),
};
}