package com.google.android.gms.internal.p002firebaseauthapi; import com.google.android.gms.common.internal.Preconditions; import org.json.JSONObject; /* loaded from: classes.dex */ public final class zzadg implements zzadb { private final String zza = Preconditions.checkNotEmpty("totp"); private final String zzb; private final String zzc; private final String zzd; private final String zze; zzadg(String str, String str2, String str3, String str4, String str5) { this.zzb = Preconditions.checkNotEmpty(str2); this.zzc = str3; this.zzd = str4; this.zze = str5; } public static zzadg zzb(String str, String str2, String str3, String str4) { Preconditions.checkNotEmpty(str2); Preconditions.checkNotEmpty(str4); return new zzadg("totp", str, str2, str3, str4); } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzabc public final String zza() { JSONObject jSONObject = new JSONObject(); JSONObject jSONObject2 = new JSONObject(); String str = this.zzc; if (str != null) { jSONObject2.put("verificationCode", str); } jSONObject.put("totpVerificationInfo", jSONObject2); jSONObject.put("mfaPendingCredential", this.zzb); String str2 = this.zzd; if (str2 != null) { jSONObject.put("tenantId", str2); } String str3 = this.zze; if (str3 != null) { jSONObject.put("mfaEnrollmentId", str3); } return jSONObject.toString(); } }