v1ImportPrivateKeyIntent.fromJson constructor

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

Implementation

factory v1ImportPrivateKeyIntent.fromJson(Map<String, dynamic> json) {
  final _userId = json['userId'] as String;
  final _privateKeyName = json['privateKeyName'] as String;
  final _encryptedBundle = json['encryptedBundle'] as String;
  final _curve = v1CurveFromJson(json['curve']);
  final _addressFormats = (json['addressFormats'] as List).map((e) => v1AddressFormatFromJson(e)).toList();
  return v1ImportPrivateKeyIntent(
    userId: _userId,
    privateKeyName: _privateKeyName,
    encryptedBundle: _encryptedBundle,
    curve: _curve,
    addressFormats: _addressFormats,
  );
}