create static method

ParticipantRoleParameter? create(
  1. String name,
  2. Role? value
)

Creates a new ParticipantRoleParameter when the value is not null

Implementation

static ParticipantRoleParameter? create(String name, Role? value) {
  if (value == null) {
    return null;
  }

  return ParticipantRoleParameter.value(name, value);
}