fromJson static method

  1. @visibleForTesting
CredentialsConnectionConfig? fromJson(
  1. dynamic json
)

Implementation

@visibleForTesting
static CredentialsConnectionConfig? fromJson(json) {
  if (json == null) return null;

  var result = CredentialsConnectionConfig(
    json["baseUrl"],
    json["userName"],
    json["password"],
    httpTimeoutMs: json["httpTimeoutMs"],
  );

  return result;
}