fix: frames
This commit is contained in:
@@ -4,6 +4,8 @@ class AvatarFrame {
|
||||
final String title;
|
||||
final int priceCoins;
|
||||
final bool vip;
|
||||
final String c1; // رنگِ گرادیان (hex بدونِ #)؛ خالی ⇒ قابِ رتبه
|
||||
final String c2;
|
||||
final bool owned;
|
||||
|
||||
const AvatarFrame({
|
||||
@@ -11,6 +13,8 @@ class AvatarFrame {
|
||||
required this.title,
|
||||
required this.priceCoins,
|
||||
required this.vip,
|
||||
required this.c1,
|
||||
required this.c2,
|
||||
required this.owned,
|
||||
});
|
||||
|
||||
@@ -19,6 +23,8 @@ class AvatarFrame {
|
||||
title: (j['title'] ?? '') as String,
|
||||
priceCoins: (j['price_coins'] ?? 0) as int,
|
||||
vip: (j['vip'] ?? false) as bool,
|
||||
c1: (j['c1'] ?? '') as String,
|
||||
c2: (j['c2'] ?? '') as String,
|
||||
owned: (j['owned'] ?? false) as bool,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user