i.smali

.class public Lcom/sandboxol/greendao/b/i;
.super Ljava/lang/Object;
.source "GamePayInfoConverter.java"

# interfaces
.implements Lorg/greenrobot/greendao/a/a;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lorg/greenrobot/greendao/a/a<",
        "Lcom/sandboxol/greendao/entity/GamePayInfo;",
        "Ljava/lang/String;",
        ">;"
    }
.end annotation


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

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

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Lcom/sandboxol/greendao/entity/GamePayInfo;
    .registers 4

    .line 1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_8

    const/4 p1, 0x0

    return-object p1

    .line 2
    :cond_8
    new-instance v0, Lcom/google/gson/j;

    invoke-direct {v0}, Lcom/google/gson/j;-><init>()V

    const-class v1, Lcom/sandboxol/greendao/entity/GamePayInfo;

    invoke-virtual {v0, p1, v1}, Lcom/google/gson/j;->a(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/sandboxol/greendao/entity/GamePayInfo;

    return-object p1
.end method

.method public a(Lcom/sandboxol/greendao/entity/GamePayInfo;)Ljava/lang/String;
    .registers 3

    if-nez p1, :cond_4

    const/4 p1, 0x0

    return-object p1

    .line 3
    :cond_4
    new-instance v0, Lcom/google/gson/j;

    invoke-direct {v0}, Lcom/google/gson/j;-><init>()V

    invoke-virtual {v0, p1}, Lcom/google/gson/j;->a(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method