RespondToAuthChallengeResponse.fromJson constructor

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

Implementation

factory RespondToAuthChallengeResponse.fromJson(Map<String, dynamic> json) {
  return RespondToAuthChallengeResponse(
    authenticationResult: json['AuthenticationResult'] != null
        ? AuthenticationResultType.fromJson(
            json['AuthenticationResult'] as Map<String, dynamic>)
        : null,
    challengeName: (json['ChallengeName'] as String?)?.toChallengeNameType(),
    challengeParameters:
        (json['ChallengeParameters'] as Map<String, dynamic>?)
            ?.map((k, e) => MapEntry(k, e as String)),
    session: json['Session'] as String?,
  );
}