package com.sistemasolton.itranvias.home.data.remote.dto.infodto;

import java.util.List;
import kotlin.Deprecated;
import kotlin.DeprecationLevel;
import kotlin.Lazy;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.serialization.DeserializationStrategy;
import kotlinx.serialization.KSerializer;
import kotlinx.serialization.UnknownFieldException;
import kotlinx.serialization.descriptors.SerialDescriptor;
import kotlinx.serialization.encoding.CompositeDecoder;
import kotlinx.serialization.encoding.CompositeEncoder;
import kotlinx.serialization.encoding.Decoder;
import kotlinx.serialization.encoding.Encoder;
import kotlinx.serialization.internal.GeneratedSerializer;
import kotlinx.serialization.internal.PluginGeneratedSerialDescriptor;
import kotlinx.serialization.internal.StringSerializer;

/* JADX INFO: compiled from: InfoDto.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u00006\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\bÇ\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0003\u0010\u0004J\u0015\u0010\u0005\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00070\u0006¢\u0006\u0002\u0010\bJ\u000e\u0010\t\u001a\u00020\u00022\u0006\u0010\n\u001a\u00020\u000bJ\u0016\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0002R\u0011\u0010\u0011\u001a\u00020\u0012¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014¨\u0006\u0015"}, d2 = {"com/sistemasolton/itranvias/home/data/remote/dto/infodto/ActualizacionDto.$serializer", "Lkotlinx/serialization/internal/GeneratedSerializer;", "Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/ActualizacionDto;", "<init>", "()V", "childSerializers", "", "Lkotlinx/serialization/KSerializer;", "()[Lkotlinx/serialization/KSerializer;", "deserialize", "decoder", "Lkotlinx/serialization/encoding/Decoder;", "serialize", "", "encoder", "Lkotlinx/serialization/encoding/Encoder;", "value", "descriptor", "Lkotlinx/serialization/descriptors/SerialDescriptor;", "getDescriptor", "()Lkotlinx/serialization/descriptors/SerialDescriptor;", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
@Deprecated(level = DeprecationLevel.HIDDEN, message = "This synthesized declaration should not be used directly")
public /* synthetic */ class ActualizacionDto$$serializer implements GeneratedSerializer<ActualizacionDto> {
    public static final int $stable;
    public static final ActualizacionDto$$serializer INSTANCE;
    private static final SerialDescriptor descriptor;

    private ActualizacionDto$$serializer() {
    }

    @Override // kotlinx.serialization.KSerializer, kotlinx.serialization.SerializationStrategy, kotlinx.serialization.DeserializationStrategy
    public final SerialDescriptor getDescriptor() {
        return descriptor;
    }

    static {
        ActualizacionDto$$serializer actualizacionDto$$serializer = new ActualizacionDto$$serializer();
        INSTANCE = actualizacionDto$$serializer;
        $stable = 8;
        PluginGeneratedSerialDescriptor pluginGeneratedSerialDescriptor = new PluginGeneratedSerialDescriptor("com.sistemasolton.itranvias.home.data.remote.dto.infodto.ActualizacionDto", actualizacionDto$$serializer, 5);
        pluginGeneratedSerialDescriptor.addElement("enlaces", false);
        pluginGeneratedSerialDescriptor.addElement("fecha", false);
        pluginGeneratedSerialDescriptor.addElement("lineas", false);
        pluginGeneratedSerialDescriptor.addElement("paradas", false);
        pluginGeneratedSerialDescriptor.addElement("precios", false);
        descriptor = pluginGeneratedSerialDescriptor;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // kotlinx.serialization.internal.GeneratedSerializer
    public final KSerializer<?>[] childSerializers() {
        Lazy[] lazyArr = ActualizacionDto.$childSerializers;
        return new KSerializer[]{EnlacesDto$$serializer.INSTANCE, StringSerializer.INSTANCE, lazyArr[2].getValue(), lazyArr[3].getValue(), PreciosDto$$serializer.INSTANCE};
    }

    @Override // kotlinx.serialization.DeserializationStrategy
    public final ActualizacionDto deserialize(Decoder decoder) {
        int i;
        EnlacesDto enlacesDto;
        String str;
        List list;
        List list2;
        PreciosDto preciosDto;
        Intrinsics.checkNotNullParameter(decoder, "decoder");
        SerialDescriptor serialDescriptor = descriptor;
        CompositeDecoder compositeDecoderBeginStructure = decoder.beginStructure(serialDescriptor);
        Lazy[] lazyArr = ActualizacionDto.$childSerializers;
        EnlacesDto enlacesDto2 = null;
        if (compositeDecoderBeginStructure.decodeSequentially()) {
            EnlacesDto enlacesDto3 = (EnlacesDto) compositeDecoderBeginStructure.decodeSerializableElement(serialDescriptor, 0, EnlacesDto$$serializer.INSTANCE, null);
            String strDecodeStringElement = compositeDecoderBeginStructure.decodeStringElement(serialDescriptor, 1);
            List list3 = (List) compositeDecoderBeginStructure.decodeSerializableElement(serialDescriptor, 2, (DeserializationStrategy) lazyArr[2].getValue(), null);
            list2 = (List) compositeDecoderBeginStructure.decodeSerializableElement(serialDescriptor, 3, (DeserializationStrategy) lazyArr[3].getValue(), null);
            enlacesDto = enlacesDto3;
            preciosDto = (PreciosDto) compositeDecoderBeginStructure.decodeSerializableElement(serialDescriptor, 4, PreciosDto$$serializer.INSTANCE, null);
            i = 31;
            list = list3;
            str = strDecodeStringElement;
        } else {
            boolean z = true;
            int i2 = 0;
            String strDecodeStringElement2 = null;
            List list4 = null;
            List list5 = null;
            PreciosDto preciosDto2 = null;
            while (z) {
                int iDecodeElementIndex = compositeDecoderBeginStructure.decodeElementIndex(serialDescriptor);
                if (iDecodeElementIndex == -1) {
                    z = false;
                } else if (iDecodeElementIndex == 0) {
                    enlacesDto2 = (EnlacesDto) compositeDecoderBeginStructure.decodeSerializableElement(serialDescriptor, 0, EnlacesDto$$serializer.INSTANCE, enlacesDto2);
                    i2 |= 1;
                } else if (iDecodeElementIndex == 1) {
                    strDecodeStringElement2 = compositeDecoderBeginStructure.decodeStringElement(serialDescriptor, 1);
                    i2 |= 2;
                } else if (iDecodeElementIndex == 2) {
                    list4 = (List) compositeDecoderBeginStructure.decodeSerializableElement(serialDescriptor, 2, (DeserializationStrategy) lazyArr[2].getValue(), list4);
                    i2 |= 4;
                } else if (iDecodeElementIndex == 3) {
                    list5 = (List) compositeDecoderBeginStructure.decodeSerializableElement(serialDescriptor, 3, (DeserializationStrategy) lazyArr[3].getValue(), list5);
                    i2 |= 8;
                } else {
                    if (iDecodeElementIndex != 4) {
                        throw new UnknownFieldException(iDecodeElementIndex);
                    }
                    preciosDto2 = (PreciosDto) compositeDecoderBeginStructure.decodeSerializableElement(serialDescriptor, 4, PreciosDto$$serializer.INSTANCE, preciosDto2);
                    i2 |= 16;
                }
            }
            i = i2;
            enlacesDto = enlacesDto2;
            str = strDecodeStringElement2;
            list = list4;
            list2 = list5;
            preciosDto = preciosDto2;
        }
        compositeDecoderBeginStructure.endStructure(serialDescriptor);
        return new ActualizacionDto(i, enlacesDto, str, list, list2, preciosDto, null);
    }

    @Override // kotlinx.serialization.SerializationStrategy
    public final void serialize(Encoder encoder, ActualizacionDto value) {
        Intrinsics.checkNotNullParameter(encoder, "encoder");
        Intrinsics.checkNotNullParameter(value, "value");
        SerialDescriptor serialDescriptor = descriptor;
        CompositeEncoder compositeEncoderBeginStructure = encoder.beginStructure(serialDescriptor);
        ActualizacionDto.write$Self$composeApp_release(value, compositeEncoderBeginStructure, serialDescriptor);
        compositeEncoderBeginStructure.endStructure(serialDescriptor);
    }
}