v1SignTransactionIntent.fromJson constructor

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

Implementation

factory v1SignTransactionIntent.fromJson(Map<String, dynamic> json) {
  final _privateKeyId = json['privateKeyId'] as String;
  final _unsignedTransaction = json['unsignedTransaction'] as String;
  final _type = v1TransactionTypeFromJson(json['type']);
  return v1SignTransactionIntent(
    privateKeyId: _privateKeyId,
    unsignedTransaction: _unsignedTransaction,
    type: _type,
  );
}