.class public final Lza/b;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lya/f;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lya/f<",
        "TT;",
        "Lv9/f0;",
        ">;"
    }
.end annotation


# static fields
.field public static final t:Lv9/y;

.field public static final u:Ljava/nio/charset/Charset;


# instance fields
.field public final r:Ln8/h;

.field public final s:Ln8/w;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ln8/w<",
            "TT;>;"
        }
    .end annotation
.end field


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    const-string v0, "application/json; charset=UTF-8"

    invoke-static {v0}, Lv9/y;->a(Ljava/lang/String;)Lv9/y;

    move-result-object v0

    sput-object v0, Lza/b;->t:Lv9/y;

    const-string v0, "UTF-8"

    invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;

    move-result-object v0

    sput-object v0, Lza/b;->u:Ljava/nio/charset/Charset;

    return-void
.end method

.method public constructor <init>(Ln8/h;Ln8/w;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ln8/h;",
            "Ln8/w<",
            "TT;>;)V"
        }
    .end annotation

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lza/b;->r:Ln8/h;

    iput-object p2, p0, Lza/b;->s:Ln8/w;

    return-void
.end method


# virtual methods
.method public c(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 6

    .line 1
    new-instance v0, Lha/e;

    invoke-direct {v0}, Lha/e;-><init>()V

    new-instance v1, Ljava/io/OutputStreamWriter;

    .line 2
    new-instance v2, Lha/f;

    invoke-direct {v2, v0}, Lha/f;-><init>(Lha/e;)V

    .line 3
    sget-object v3, Lza/b;->u:Ljava/nio/charset/Charset;

    invoke-direct {v1, v2, v3}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V

    iget-object v2, p0, Lza/b;->r:Ln8/h;

    .line 4
    invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v2, Lu8/c;

    invoke-direct {v2, v1}, Lu8/c;-><init>(Ljava/io/Writer;)V

    const/4 v1, 0x0

    .line 5
    iput-boolean v1, v2, Lu8/c;->y:Z

    .line 6
    iget-object v1, p0, Lza/b;->s:Ln8/w;

    invoke-virtual {v1, v2, p1}, Ln8/w;->b(Lu8/c;Ljava/lang/Object;)V

    invoke-virtual {v2}, Lu8/c;->close()V

    sget-object p1, Lza/b;->t:Lv9/y;

    invoke-virtual {v0}, Lha/e;->L()Lha/i;

    move-result-object v0

    const-string v1, "content"

    .line 7
    invoke-static {v0, v1}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v1, "$this$toRequestBody"

    .line 8
    invoke-static {v0, v1}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v1, Lv9/d0;

    invoke-direct {v1, v0, p1}, Lv9/d0;-><init>(Lha/i;Lv9/y;)V

    return-object v1
.end method
