fromWire static method

CardBrand fromWire(
  1. String? value
)

Implementation

static CardBrand fromWire(String? value) {
  for (final b in CardBrand.values) {
    if (b.wire == value) return b;
  }
  return CardBrand.unknown;
}