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 zzadd implements zzacz { private final String zza = Preconditions.checkNotEmpty("phone"); private String zzb; private final String zzc; private final String zzd; private final String zze; private final String zzf; private zzadd(String str, String str2, String str3, String str4, String str5, String str6) { this.zzb = Preconditions.checkNotEmpty(str2); this.zzd = str3; this.zze = str4; this.zzc = str5; this.zzf = str6; } public static zzadd zzc(String str, String str2, String str3, String str4, String str5) { Preconditions.checkNotEmpty(str3); Preconditions.checkNotEmpty(str2); return new zzadd("phone", str, str2, str3, str4, str5); } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzabc public final String zza() { JSONObject jSONObject = new JSONObject(); jSONObject.put("idToken", this.zzb); jSONObject.put("mfaProvider", 1); String str = this.zzc; if (str != null) { jSONObject.put("displayName", str); } JSONObject jSONObject2 = new JSONObject(); String str2 = this.zzd; if (str2 != null) { jSONObject2.put("sessionInfo", str2); } String str3 = this.zze; if (str3 != null) { jSONObject2.put("code", str3); } jSONObject.put("phoneVerificationInfo", jSONObject2); String str4 = this.zzf; if (str4 != null) { jSONObject.put("tenantId", str4); } return jSONObject.toString(); } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzacz public final /* synthetic */ zzacz zzb(String str) { this.zzb = str; return this; } }