mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-11 13:24:51 +00:00
42 lines
1.3 KiB
Dart
42 lines
1.3 KiB
Dart
|
import 'dart:convert';
|
||
|
|
||
|
import 'package:cw_zano/api/model/recent_history.dart';
|
||
|
import 'package:cw_zano/api/model/wi.dart';
|
||
|
|
||
|
class CreateLoadRestoreWalletResult {
|
||
|
final String name;
|
||
|
final String pass;
|
||
|
final RecentHistory recentHistory;
|
||
|
final bool recovered;
|
||
|
final String seed;
|
||
|
final int walletFileSize;
|
||
|
final int walletId;
|
||
|
final int walletLocalBcSize;
|
||
|
final Wi wi;
|
||
|
|
||
|
CreateLoadRestoreWalletResult(
|
||
|
{required this.name,
|
||
|
required this.pass,
|
||
|
required this.recentHistory,
|
||
|
required this.recovered,
|
||
|
required this.seed,
|
||
|
required this.walletFileSize,
|
||
|
required this.walletId,
|
||
|
required this.walletLocalBcSize,
|
||
|
required this.wi});
|
||
|
|
||
|
factory CreateLoadRestoreWalletResult.fromJson(Map<String, dynamic> json) =>
|
||
|
CreateLoadRestoreWalletResult(
|
||
|
name: json['name'] as String,
|
||
|
pass: json['pass'] as String,
|
||
|
recentHistory: RecentHistory.fromJson(
|
||
|
json['recent_history'] as Map<String, dynamic>),
|
||
|
recovered: json['recovered'] as bool,
|
||
|
seed: json['seed'] as String,
|
||
|
walletFileSize: json['wallet_file_size'] as int,
|
||
|
walletId: json['wallet_id'] as int,
|
||
|
walletLocalBcSize: json['wallet_local_bc_size'] as int,
|
||
|
wi: Wi.fromJson(json['wi'] as Map<String, dynamic>),
|
||
|
);
|
||
|
}
|