toJson method

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

Implementation

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

  switch (object) {
    case SmartQuotesType.disabled:
      return 'disabled';
    case SmartQuotesType.enabled:
      return 'enabled';
  }
}