encodeSmartDashesType static method

String? encodeSmartDashesType(
  1. SmartDashesType? value
)

Encodes the given value to the String representation. Supported values are:

  • disabled
  • enabled

All other values, including null, will result in null.

Implementation

static String? encodeSmartDashesType(SmartDashesType? value) {
  String? result;

  if (value != null) {
    switch (value) {
      case SmartDashesType.disabled:
        result = 'disabled';
        break;
      case SmartDashesType.enabled:
        result = 'enabled';
        break;
    }
  }

  return result;
}