mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
fix cryptos with null networks/contractAddresses
This commit is contained in:
parent
c3dd04b830
commit
2e6dfe0f62
1 changed files with 5 additions and 5 deletions
|
@ -25,11 +25,11 @@ class Crypto {
|
||||||
factory Crypto.fromJson(Map<String, dynamic> json) {
|
factory Crypto.fromJson(Map<String, dynamic> json) {
|
||||||
try {
|
try {
|
||||||
return Crypto(
|
return Crypto(
|
||||||
ticker: json["ticker"] as String,
|
ticker: "${json['ticker']}",
|
||||||
name: json["name"] as String,
|
name: "${json['name']}",
|
||||||
network: json["network"] as String,
|
network: "${json['network']}",
|
||||||
contractAddress: json["contractAddress"] as String,
|
contractAddress: "${json['contractAddress']}",
|
||||||
image: json["image"] as String,
|
image: "${json['image']}",
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
rethrow;
|
rethrow;
|
||||||
|
|
Loading…
Reference in a new issue