AuthChallenge.fromJson constructor

AuthChallenge.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AuthChallenge.fromJson(Map<String, dynamic> json) {
  return AuthChallenge(
    source: json.containsKey('source')
        ? AuthChallengeSource.fromJson(json['source'] as String)
        : null,
    origin: json['origin'] as String,
    scheme: json['scheme'] as String,
    realm: json['realm'] as String,
  );
}