mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-26 05:29:57 +00:00
21 lines
665 B
Dart
21 lines
665 B
Dart
|
import 'dart:convert';
|
||
|
|
||
|
import 'package:cw_zano/api/model/receive.dart';
|
||
|
|
||
|
class EmployedEntries {
|
||
|
final List<Receive> receive;
|
||
|
final List<Receive> send;
|
||
|
|
||
|
EmployedEntries({required this.receive, required this.send});
|
||
|
|
||
|
factory EmployedEntries.fromJson(Map<String, dynamic> json) =>
|
||
|
EmployedEntries(
|
||
|
receive: json['receive'] == null ? [] : (json['receive'] as List<dynamic>)
|
||
|
.map((e) => Receive.fromJson(e as Map<String, dynamic>))
|
||
|
.toList(),
|
||
|
send: json['spent'] == null ? [] : (json['spent'] as List<dynamic>)
|
||
|
.map((e) => Receive.fromJson(e as Map<String, dynamic>))
|
||
|
.toList(),
|
||
|
);
|
||
|
}
|