You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
443 B
24 lines
443 B
3 years ago
|
class UserFinance {
|
||
|
String userGUID;
|
||
|
int gold;
|
||
|
int silver;
|
||
|
|
||
|
UserFinance({
|
||
|
this.userGUID,
|
||
|
this.gold,
|
||
|
this.silver,
|
||
|
});
|
||
|
factory UserFinance.fromJSON(Map<String, dynamic> json) {
|
||
|
return UserFinance(
|
||
|
userGUID: json["userGuid"],
|
||
|
gold: json["gold"],
|
||
|
silver: json["silver"],
|
||
|
);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return '{"userGuid": "$userGUID", "gold": "$gold", "silver": "$silver"}';
|
||
|
}
|
||
|
}
|