fromMap static method

SslError? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible SslError instance from a Map value.

Implementation

static SslError? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = SslError(
    androidError: AndroidSslError.fromNativeValue(map['code']),
    code: SslErrorType.fromNativeValue(map['code']),
    iosError: IOSSslError.fromNativeValue(map['code']),
    message: map['message'],
  );
  return instance;
}