package com.google.android.gms.internal.p002firebaseauthapi; import com.google.android.gms.common.Scopes; import com.google.android.gms.common.util.Strings; import java.util.List; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes.dex */ public final class zzaeh implements zzabd { private static final String zza = "zzaeh"; private String zzb; private String zzc; private Boolean zzd; private String zze; private String zzf; private zzaea zzg; private String zzh; private String zzi; private long zzj; @Override // com.google.android.gms.internal.p002firebaseauthapi.zzabd public final /* bridge */ /* synthetic */ zzabd zza(String str) { try { JSONObject jSONObject = new JSONObject(str); this.zzb = Strings.emptyToNull(jSONObject.optString(Scopes.EMAIL, null)); this.zzc = Strings.emptyToNull(jSONObject.optString("passwordHash", null)); this.zzd = Boolean.valueOf(jSONObject.optBoolean("emailVerified", false)); this.zze = Strings.emptyToNull(jSONObject.optString("displayName", null)); this.zzf = Strings.emptyToNull(jSONObject.optString("photoUrl", null)); this.zzg = zzaea.zza(jSONObject.optJSONArray("providerUserInfo")); this.zzh = Strings.emptyToNull(jSONObject.optString("idToken", null)); this.zzi = Strings.emptyToNull(jSONObject.optString("refreshToken", null)); this.zzj = jSONObject.optLong("expiresIn", 0L); return this; } catch (NullPointerException | JSONException e10) { throw zzafg.zza(e10, zza, str); } } public final long zzb() { return this.zzj; } public final String zzc() { return this.zzb; } public final String zzd() { return this.zzh; } public final String zze() { return this.zzi; } public final List zzf() { zzaea zzaeaVar = this.zzg; if (zzaeaVar != null) { return zzaeaVar.zzc(); } return null; } }