toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Permissions.owner:
      return 'owner';
    case Permissions.readWrite:
      return 'read-write';
    case Permissions.readOnly:
      return 'read-only';
  }
}