create static method

RelationshipParameter? create(
  1. String name,
  2. Relationship? value
)

Creates a new RelationshipParameter when the value is not null

Implementation

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

  return RelationshipParameter.value(name, value);
}