AuthChallengeResponse.fromJson constructor

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

Implementation

factory AuthChallengeResponse.fromJson(Map<String, dynamic> json) {
  return AuthChallengeResponse(
    response:
        AuthChallengeResponseResponse.fromJson(json['response'] as String),
    username:
        json.containsKey('username') ? json['username'] as String : null,
    password:
        json.containsKey('password') ? json['password'] as String : null,
  );
}