TransferError.fromJson constructor

TransferError.fromJson(
  1. Map map
)

Implementation

factory TransferError.fromJson(Map map) {
  return TransferError(
    txTooOld: map['TxTooOld'] != null ? Map.from(map['TxTooOld']) : null,
    badFee: map['BadFee'] != null ? Map.from(map['BadFee']) : null,
    txDuplicate:
        map['TxDuplicate'] != null ? Map.from(map['TxDuplicate']) : null,
    insufficientFunds: map['InsufficientFunds'] != null
        ? Map.from(map['InsufficientFunds'])
        : null,
    txCreatedInFuture: map.containsKey('TxCreatedInFuture'),
  );
}