.class Lcom/moji/lottie/PolystarShape$Factory;
.super Ljava/lang/Object;
.source "PolystarShape.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/lottie/PolystarShape;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = "Factory"
.end annotation


# direct methods
.method private constructor <init>()V
    .locals 0

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

    return-void
.end method

.method static a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;)Lcom/moji/lottie/PolystarShape;
    .locals 12

    const-string v0, "nm"

    .line 60
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v0, "sy"

    .line 61
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v0

    invoke-static {v0}, Lcom/moji/lottie/PolystarShape$Type;->forValue(I)Lcom/moji/lottie/PolystarShape$Type;

    move-result-object v3

    const-string v0, "pt"

    .line 63
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, p1, v1}, Lcom/moji/lottie/AnimatableFloatValue$Factory;->a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;Z)Lcom/moji/lottie/AnimatableFloatValue;

    move-result-object v4

    const-string v0, "p"

    .line 65
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    .line 64
    invoke-static {v0, p1}, Lcom/moji/lottie/AnimatablePathValue;->a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;)Lcom/moji/lottie/AnimatableValue;

    move-result-object v5

    const-string v0, "r"

    .line 67
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-static {v0, p1, v1}, Lcom/moji/lottie/AnimatableFloatValue$Factory;->a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;Z)Lcom/moji/lottie/AnimatableFloatValue;

    move-result-object v6

    const-string v0, "or"

    .line 69
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/moji/lottie/AnimatableFloatValue$Factory;->a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;)Lcom/moji/lottie/AnimatableFloatValue;

    move-result-object v8

    const-string v0, "os"

    .line 71
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-static {v0, p1, v1}, Lcom/moji/lottie/AnimatableFloatValue$Factory;->a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;Z)Lcom/moji/lottie/AnimatableFloatValue;

    move-result-object v10

    .line 75
    sget-object v0, Lcom/moji/lottie/PolystarShape$Type;->Star:Lcom/moji/lottie/PolystarShape$Type;

    const/4 v7, 0x0

    if-ne v3, v0, :cond_0

    const-string v0, "ir"

    .line 77
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/moji/lottie/AnimatableFloatValue$Factory;->a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;)Lcom/moji/lottie/AnimatableFloatValue;

    move-result-object v0

    const-string v7, "is"

    .line 79
    invoke-virtual {p0, v7}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p0

    invoke-static {p0, p1, v1}, Lcom/moji/lottie/AnimatableFloatValue$Factory;->a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;Z)Lcom/moji/lottie/AnimatableFloatValue;

    move-result-object p0

    move-object v9, p0

    move-object v7, v0

    goto :goto_0

    :cond_0
    move-object v9, v7

    .line 84
    :goto_0
    new-instance p0, Lcom/moji/lottie/PolystarShape;

    const/4 v11, 0x0

    move-object v1, p0

    invoke-direct/range {v1 .. v11}, Lcom/moji/lottie/PolystarShape;-><init>(Ljava/lang/String;Lcom/moji/lottie/PolystarShape$Type;Lcom/moji/lottie/AnimatableFloatValue;Lcom/moji/lottie/AnimatableValue;Lcom/moji/lottie/AnimatableFloatValue;Lcom/moji/lottie/AnimatableFloatValue;Lcom/moji/lottie/AnimatableFloatValue;Lcom/moji/lottie/AnimatableFloatValue;Lcom/moji/lottie/AnimatableFloatValue;Lcom/moji/lottie/PolystarShape$1;)V

    return-object p0
.end method
