package com.google.android.gms.common.server.response; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter; import com.google.android.gms.common.server.response.FastJsonResponse; import java.util.ArrayList; import java.util.Map; /* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */ /* JADX INFO: loaded from: classes2.dex */ public final class zal extends AbstractSafeParcelable { public static final Parcelable.Creator CREATOR = new zap(); final int zaa; final String zab; final ArrayList zac; zal(int i, String str, ArrayList arrayList) { this.zaa = i; this.zab = str; this.zac = arrayList; } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { int i2 = this.zaa; int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); SafeParcelWriter.writeInt(parcel, 1, i2); SafeParcelWriter.writeString(parcel, 2, this.zab, false); SafeParcelWriter.writeTypedList(parcel, 3, this.zac, false); SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader); } zal(String str, Map map) { ArrayList arrayList; this.zaa = 1; this.zab = str; if (map == null) { arrayList = null; } else { arrayList = new ArrayList(); for (String str2 : map.keySet()) { arrayList.add(new zam(str2, (FastJsonResponse.Field) map.get(str2))); } } this.zac = arrayList; } }