LedgerOperations.fromJson constructor

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

Implementation

factory LedgerOperations.fromJson(Map<String, dynamic> json) =>
    LedgerOperations(
      fee: json['fee']?.toInt(),
      transactionMovements: json['transactionMovements'] == null
          ? null
          : List<TransactionMovement>.from(json['transactionMovements']
              .map((dynamic x) => TransactionMovement.fromJson(x))),
      unspentOutputs: json['unspentOutputs'] == null
          ? null
          : List<UnspentOutputs>.from(json['unspentOutputs']
              .map((dynamic x) => UnspentOutputs.fromJson(x))),
    );