v1ImportWalletIntent.fromJson constructor

v1ImportWalletIntent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory v1ImportWalletIntent.fromJson(Map<String, dynamic> json) {
  final _userId = json['userId'] as String;
  final _walletName = json['walletName'] as String;
  final _encryptedBundle = json['encryptedBundle'] as String;
  final _accounts = (json['accounts'] as List).map((e) => v1WalletAccountParams.fromJson(e as Map<String, dynamic>)).toList();
  return v1ImportWalletIntent(
    userId: _userId,
    walletName: _walletName,
    encryptedBundle: _encryptedBundle,
    accounts: _accounts,
  );
}