InitiateAuthResponse.fromJson constructor

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

Implementation

factory InitiateAuthResponse.fromJson(Map<String, dynamic> json) {
  return InitiateAuthResponse(
    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?,
  );
}