tryParse static method

ContactKind? tryParse(
  1. String? v
)

Parses the wire value, or null for a kind this SDK does not know.

Implementation

static ContactKind? tryParse(String? v) {
  for (final k in values) {
    if (k.name == v) return k;
  }
  return null;
}