parse static method

Relationship parse(
  1. String textValue
)
override

Parses the given textValue

Implementation

static Relationship parse(String textValue) {
  switch (textValue) {
    case 'PARENT':
      return Relationship.parent;
    case 'CHILD':
      return Relationship.child;
    case 'SIBLING':
      return Relationship.sibling;
    default:
      return Relationship.other;
  }
}