toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RoleType.viewer:
      return 'VIEWER';
    case RoleType.contributor:
      return 'CONTRIBUTOR';
    case RoleType.owner:
      return 'OWNER';
    case RoleType.coowner:
      return 'COOWNER';
  }
}