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