package com.sistemasolton.itranvias.home.data.mappers;

import com.sistemasolton.itranvias.home.data.local.entity.InfoEntity;
import com.sistemasolton.itranvias.home.data.remote.dto.infodto.InfoDto;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.serialization.json.Json;

/* JADX INFO: compiled from: InfoMappers.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\n\u0010\u0000\u001a\u00020\u0001*\u00020\u0002\u001a\n\u0010\u0003\u001a\u00020\u0002*\u00020\u0001¨\u0006\u0004"}, d2 = {"toEntity", "Lcom/sistemasolton/itranvias/home/data/local/entity/InfoEntity;", "Lcom/sistemasolton/itranvias/home/data/remote/dto/infodto/InfoDto;", "toDto", "composeApp_release"}, k = 2, mv = {2, 1, 0}, xi = 48)
public final class InfoMappersKt {
    public static final InfoEntity toEntity(InfoDto infoDto) {
        Intrinsics.checkNotNullParameter(infoDto, "<this>");
        return new InfoEntity(0, Json.INSTANCE.encodeToString(InfoDto.INSTANCE.serializer(), infoDto));
    }

    public static final InfoDto toDto(InfoEntity infoEntity) {
        Intrinsics.checkNotNullParameter(infoEntity, "<this>");
        return (InfoDto) Json.INSTANCE.decodeFromString(InfoDto.INSTANCE.serializer(), infoEntity.getJson());
    }
}