fromJson method

  1. @override
FloatingLabelBehavior? fromJson(
  1. String? json
)
override

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';
}