toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ContentType.applicationJson:
      return 'application/json';
    case ContentType.applicationXml:
      return 'application/xml';
  }
}