MessagingClientErrorCode.fromCode constructor

  1. @internal
MessagingClientErrorCode.fromCode(
  1. String? code
)

Implementation

@internal
factory MessagingClientErrorCode.fromCode(String? code) {
  if (code == null) return unknown;
  return values.firstWhereOrNull((it) => it.code == code) ?? unknown;
}