SignUpResponse.fromJson constructor

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

Implementation

factory SignUpResponse.fromJson(Map<String, dynamic> json) {
  return SignUpResponse(
    userConfirmed: json['UserConfirmed'] as bool,
    userSub: json['UserSub'] as String,
    codeDeliveryDetails: json['CodeDeliveryDetails'] != null
        ? CodeDeliveryDetailsType.fromJson(
            json['CodeDeliveryDetails'] as Map<String, dynamic>)
        : null,
  );
}