toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EncodingType.binary:
      return 'binary';
    case EncodingType.json:
      return 'json';
  }
}