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