toJson method
Implementation
@override
String? toJson(MaxLengthEnforcement? object) {
if (object == null) return null;
switch (object) {
case MaxLengthEnforcement.enforced:
return 'enforced';
case MaxLengthEnforcement.none:
return 'none';
case MaxLengthEnforcement.truncateAfterCompositionEnds:
return 'truncateAfterCompositionEnds';
}
}