toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case HandshakeResourceType.account:
      return 'ACCOUNT';
    case HandshakeResourceType.organization:
      return 'ORGANIZATION';
    case HandshakeResourceType.organizationFeatureSet:
      return 'ORGANIZATION_FEATURE_SET';
    case HandshakeResourceType.email:
      return 'EMAIL';
    case HandshakeResourceType.masterEmail:
      return 'MASTER_EMAIL';
    case HandshakeResourceType.masterName:
      return 'MASTER_NAME';
    case HandshakeResourceType.notes:
      return 'NOTES';
    case HandshakeResourceType.parentHandshake:
      return 'PARENT_HANDSHAKE';
  }
}