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

15 lines
419 B
Dart
Raw Normal View History

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