toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Unit.bits:
      return 'BITS';
    case Unit.bytes:
      return 'BYTES';
    case Unit.packets:
      return 'PACKETS';
    case Unit.requests:
      return 'REQUESTS';
  }
}