| 1 | import 'package:cw_zano/api/model/wi.dart'; |
| 2 | import 'package:cw_zano/api/model/wi_extended.dart'; |
| 3 | |
| 4 | class GetWalletInfoResult { |
| 5 | final Wi wi; |
| 6 | final WiExtended wiExtended; |
| 7 | |
| 8 | GetWalletInfoResult({required this.wi, required this.wiExtended}); |
| 9 | |
| 10 | factory GetWalletInfoResult.fromJson(Map<String, dynamic> json) => GetWalletInfoResult( |
| 11 | wi: Wi.fromJson(json['wi'] as Map<String, dynamic>? ?? {}), |
| 12 | wiExtended: WiExtended.fromJson(json['wi_extended'] as Map<String, dynamic>? ?? {}), |
| 13 | ); |
| 14 | } |