toJson method
Implementation
@override
String? toJson(AutovalidateMode? object) {
if (object == null) return null;
switch (object) {
case AutovalidateMode.always:
return 'always';
case AutovalidateMode.disabled:
return 'disabled';
case AutovalidateMode.onUserInteraction:
return 'onUserInteraction';
}
}