toJson method

  1. @override
String? toJson(
  1. AutovalidateMode? object
)
override

Implementation

@override
String? toJson(AutovalidateMode? object) {
  if (object == null) return null;

  switch (object) {
    case AutovalidateMode.always:
      return 'always';

    case AutovalidateMode.disabled:
      return 'disabled';

    case AutovalidateMode.onUserInteraction:
      return 'onUserInteraction';
  }
}