cake_wallet/cw_zano/lib/api/model/receive.dart

14 lines
377 B
Dart
Raw Normal View History

2023-12-02 09:42:00 +00:00
class Receive {
final int amount;
final String assetId;
final int index;
Receive({required this.amount, required this.assetId, required this.index});
factory Receive.fromJson(Map<String, dynamic> json) => Receive(
amount: json['amount'] as int? ?? 0,
assetId: json['asset_id'] as String? ?? '',
index: json['index'] as int? ?? 0,
2023-12-02 09:42:00 +00:00
);
}