fromJson static method

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

Implementation

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

  var result = LoginConfig(
    json["applicationId"],
    json["baseUrl"],
    locale: json["locale"],
    metadata: json["metadata"],
    httpTimeoutMs: json["httpTimeoutMs"],
  );

  return result;
}