TImportWalletBody.fromJson constructor

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

Implementation

factory TImportWalletBody.fromJson(Map<String, dynamic> json) {
  final _timestampMs = json['timestampMs'] as String?;
  final _organizationId = json['organizationId'] as String?;
  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 TImportWalletBody(
    timestampMs: _timestampMs,
    organizationId: _organizationId,
    userId: _userId,
    walletName: _walletName,
    encryptedBundle: _encryptedBundle,
    accounts: _accounts,
  );
}