InputMessage.fromJson constructor

InputMessage.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory InputMessage.fromJson(Map<String, dynamic> data) {
  return InputMessage(
      amount: parseBigInt(data['amount']),
      sender: addHexPrefix(data['sender']),
      recipient: addHexPrefix(data['recipient']),
      witnessIndex: data['witnessIndex']);
}