fromJson method

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

Implementation

@override
SmartQuotesType? fromJson(String? json) {
  if (json == null) return null;

  switch (json) {
    case 'disabled':
      return SmartQuotesType.disabled;

    case 'enabled':
      return SmartQuotesType.enabled;
  }

  throw 'Unsuported_Json_Value';
}