mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
1769db1641
* Fix exchanges not showing * Fix button text on Monero receive screen * Temp fix for ERC20 and SPL tokens not having raw value * Manually Add Trocador new providers temporarily until API integration * properly handle nullability of n2 node [skip ci] --------- Co-authored-by: tuxsudo <tuxsudo@tux.pizza>
31 lines
716 B
Dart
31 lines
716 B
Dart
class N2Node {
|
|
N2Node({
|
|
this.weight,
|
|
this.uptime,
|
|
this.score,
|
|
this.account,
|
|
this.alias,
|
|
});
|
|
|
|
String? uptime;
|
|
double? weight;
|
|
int? score;
|
|
String? account;
|
|
String? alias;
|
|
|
|
factory N2Node.fromJson(Map<String, dynamic> json) => N2Node(
|
|
weight: double.tryParse((json['weight'] as num?).toString()),
|
|
uptime: json['uptime'] as String?,
|
|
score: json['score'] as int?,
|
|
account: json['rep_address'] as String?,
|
|
alias: json['alias'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => <String, dynamic>{
|
|
'uptime': uptime,
|
|
'weight': weight,
|
|
'score': score,
|
|
'rep_address': account,
|
|
'alias': alias,
|
|
};
|
|
}
|