mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-28 22:49:49 +00:00
21 lines
671 B
Dart
21 lines
671 B
Dart
|
import 'package:cw_zano/api/model/history.dart';
|
||
|
|
||
|
class RecentHistory {
|
||
|
final List<History>? history;
|
||
|
final int lastItemIndex;
|
||
|
final int totalHistoryItems;
|
||
|
|
||
|
RecentHistory(
|
||
|
{required this.history,
|
||
|
required this.lastItemIndex,
|
||
|
required this.totalHistoryItems});
|
||
|
|
||
|
factory RecentHistory.fromJson(Map<String, dynamic> json) => RecentHistory(
|
||
|
history: json['history'] == null ? null : (json['history'] as List<dynamic>)
|
||
|
.map((e) => History.fromJson(e as Map<String, dynamic>))
|
||
|
.toList(),
|
||
|
lastItemIndex: json['last_item_index'] as int,
|
||
|
totalHistoryItems: json['total_history_items'] as int,
|
||
|
);
|
||
|
}
|