package com.amplifyframework.core.configuration;

import com.amplifyframework.auth.AuthUserAttributeKey;
import fq.b;
import hq.d;
import hq.e;
import hq.h;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.jvm.internal.t;

@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\bÀ\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0010\u0010\u0011J\u0010\u0010\u0005\u001a\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0003H\u0016J\u0018\u0010\n\u001a\u00020\t2\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u0002H\u0016R\u001a\u0010\f\u001a\u00020\u000b8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\f\u0010\r\u001a\u0004\b\u000e\u0010\u000f¨\u0006\u0012"}, d2 = {"Lcom/amplifyframework/core/configuration/AuthUserAttributeKeySerializer;", "Lfq/b;", "Lcom/amplifyframework/auth/AuthUserAttributeKey;", "Liq/d;", "decoder", "deserialize", "Liq/e;", "encoder", "value", "Lrm/n0;", "serialize", "Lhq/e;", "descriptor", "Lhq/e;", "getDescriptor", "()Lhq/e;", "<init>", "()V", "com.amplifyframework.core_release"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class AuthUserAttributeKeySerializer implements b {
    public static final AuthUserAttributeKeySerializer INSTANCE = new AuthUserAttributeKeySerializer();
    private static final e descriptor = h.a("AuthUserAttributeKey", d.i.f22046a);

    private AuthUserAttributeKeySerializer() {
    }

    @Override // fq.b, fq.a
    public e getDescriptor() {
        return descriptor;
    }

    @Override // fq.a
    public AuthUserAttributeKey deserialize(iq.d decoder) {
        t.g(decoder, "decoder");
        String lowerCase = decoder.j().toLowerCase(Locale.ROOT);
        t.f(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
        AuthUserAttributeKey custom = AuthUserAttributeKey.custom(lowerCase);
        t.f(custom, "custom(...)");
        return custom;
    }

    public void serialize(iq.e encoder, AuthUserAttributeKey value) {
        t.g(encoder, "encoder");
        t.g(value, "value");
        String keyString = value.getKeyString();
        t.f(keyString, "getKeyString(...)");
        encoder.b(keyString);
    }
}
