toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Permission.fullControl:
      return 'FULL_CONTROL';
    case Permission.write:
      return 'WRITE';
    case Permission.writeAcp:
      return 'WRITE_ACP';
    case Permission.read:
      return 'READ';
    case Permission.readAcp:
      return 'READ_ACP';
  }
}