toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DataFormat.csv:
      return 'CSV';
    case DataFormat.json:
      return 'JSON';
  }
}