tryParse static method

PushProvider? tryParse(
  1. String? s
)

Parses the wire value.

Implementation

static PushProvider? tryParse(String? s) => switch (s) {
  'fcm' => PushProvider.fcm,
  'apns' => PushProvider.apns,
  _ => null,
};