v1WalletAccount.fromJson constructor

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

Implementation

factory v1WalletAccount.fromJson(Map<String, dynamic> json) {
  final _walletAccountId = json['walletAccountId'] as String;
  final _organizationId = json['organizationId'] as String;
  final _walletId = json['walletId'] as String;
  final _curve = v1CurveFromJson(json['curve']);
  final _pathFormat = v1PathFormatFromJson(json['pathFormat']);
  final _path = json['path'] as String;
  final _addressFormat = v1AddressFormatFromJson(json['addressFormat']);
  final _address = json['address'] as String;
  final _createdAt = externaldatav1Timestamp.fromJson(json['createdAt'] as Map<String, dynamic>);
  final _updatedAt = externaldatav1Timestamp.fromJson(json['updatedAt'] as Map<String, dynamic>);
  final _publicKey = json['publicKey'] as String?;
  final _walletDetails = json['walletDetails'] == null ? null : v1Wallet.fromJson(json['walletDetails'] as Map<String, dynamic>);
  return v1WalletAccount(
    walletAccountId: _walletAccountId,
    organizationId: _organizationId,
    walletId: _walletId,
    curve: _curve,
    pathFormat: _pathFormat,
    path: _path,
    addressFormat: _addressFormat,
    address: _address,
    createdAt: _createdAt,
    updatedAt: _updatedAt,
    publicKey: _publicKey,
    walletDetails: _walletDetails,
  );
}