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) {
|
||||
try {
|
||||
return Crypto(
|
||||
ticker: json["ticker"] as String,
|
||||
name: json["name"] as String,
|
||||
network: json["network"] as String,
|
||||
contractAddress: json["contractAddress"] as String,
|
||||
image: json["image"] as String,
|
||||
ticker: "${json['ticker']}",
|
||||
name: "${json['name']}",
|
||||
network: "${json['network']}",
|
||||
contractAddress: "${json['contractAddress']}",
|
||||
image: "${json['image']}",
|
||||
);
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
|
|
Loading…
Reference in a new issue