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