mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-04 18:09:39 +00:00
15 lines
396 B
Dart
15 lines
396 B
Dart
|
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,
|
||
|
assetId: json['asset_id'] as String,
|
||
|
isIncome: json['is_income'] as bool,
|
||
|
);
|
||
|
}
|