toEncodingType method

EncodingType toEncodingType()

Implementation

EncodingType toEncodingType() {
  switch (this) {
    case 'binary':
      return EncodingType.binary;
    case 'json':
      return EncodingType.json;
  }
  throw Exception('$this is not known in enum EncodingType');
}