toJson method

  1. @override
String? toJson(
  1. FloatingLabelBehavior? value
)
override

Implementation

@override
String? toJson(FloatingLabelBehavior? value) {
  if (value == null) return null;

  switch (value) {
    case FloatingLabelBehavior.always:
      return 'always';
      break;

    case FloatingLabelBehavior.auto:
      return 'auto';
      break;

    case FloatingLabelBehavior.never:
      return 'never';
      break;
  }

  throw 'Json_Unsuported_Value';
}