Skip to content

Commit

Permalink
Update CryptoCurrency model
Browse files Browse the repository at this point in the history
  • Loading branch information
SepehrFakoori committed Jul 10, 2024
1 parent 0e2a95a commit 0edf3c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/data/model/crypto_currency.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class CryptoCurrency {
String? keyName;
String? persianName;
String? englishName;
int? rank;
double? price;
String? rank;
String? price;

CryptoCurrency(
this.keyName,
Expand All @@ -18,8 +18,8 @@ class CryptoCurrency {
jsonObject["key"],
jsonObject["name"],
jsonObject["name_en"],
jsonObject["rank"],
jsonObject["price"],
jsonObject["rank"].toString(),
jsonObject["price"].toString(),
);
}
}

0 comments on commit 0edf3c7

Please sign in to comment.