fromRelation static method

ProjectRole fromRelation(
  1. String? relation
)

Implementation

static ProjectRole fromRelation(String? relation) {
  for (final role in values) {
    if (role.relation == relation) {
      return role;
    }
  }
  return none;
}