GetUserPoolMfaConfigResponse.fromJson constructor

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

Implementation

factory GetUserPoolMfaConfigResponse.fromJson(Map<String, dynamic> json) {
  return GetUserPoolMfaConfigResponse(
    mfaConfiguration:
        (json['MfaConfiguration'] as String?)?.toUserPoolMfaType(),
    smsMfaConfiguration: json['SmsMfaConfiguration'] != null
        ? SmsMfaConfigType.fromJson(
            json['SmsMfaConfiguration'] as Map<String, dynamic>)
        : null,
    softwareTokenMfaConfiguration:
        json['SoftwareTokenMfaConfiguration'] != null
            ? SoftwareTokenMfaConfigType.fromJson(
                json['SoftwareTokenMfaConfiguration'] as Map<String, dynamic>)
            : null,
  );
}