package com.google.android.gms.internal.p002firebaseauthapi; import com.google.android.gms.common.util.Strings; import com.huawei.hms.support.feature.result.CommonConstant; import java.util.List; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes2.dex */ public final class zzaap implements zzxn { private static final String zza = "zzaap"; private String zzb; private String zzc; private Boolean zzd; private String zze; private String zzf; private zzaag zzg; private String zzh; private String zzi; private long zzj; @Override // com.google.android.gms.internal.p002firebaseauthapi.zzxn public final /* synthetic */ zzxn zza(String str) throws zzvg { try { JSONObject jSONObject = new JSONObject(str); this.zzb = Strings.emptyToNull(jSONObject.optString("email", null)); this.zzc = Strings.emptyToNull(jSONObject.optString("passwordHash", null)); this.zzd = Boolean.valueOf(jSONObject.optBoolean("emailVerified", false)); this.zze = Strings.emptyToNull(jSONObject.optString(CommonConstant.KEY_DISPLAY_NAME, null)); this.zzf = Strings.emptyToNull(jSONObject.optString("photoUrl", null)); this.zzg = zzaag.zza(jSONObject.optJSONArray("providerUserInfo")); this.zzh = Strings.emptyToNull(jSONObject.optString(CommonConstant.KEY_ID_TOKEN, null)); this.zzi = Strings.emptyToNull(jSONObject.optString("refreshToken", null)); this.zzj = jSONObject.optLong("expiresIn", 0L); return this; } catch (NullPointerException | JSONException e) { throw zzabk.zza(e, zza, str); } } public final List zzf() { zzaag zzaagVar = this.zzg; if (zzaagVar != null) { return zzaagVar.zzc(); } return null; } public final String zze() { return this.zzi; } public final String zzd() { return this.zzh; } public final String zzc() { return this.zzb; } public final long zzb() { return this.zzj; } }