InputMessage.fromJson constructor
InputMessage.fromJson(
- 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']),
data: data['data'],
nonce: parseBigInt(data['nonce']),
witnessIndex: data['witnessIndex'],
dataLength: data['dataLength'],
predicateLength: data['predicateLength'],
predicateDataLength: data['predicateDataLength'],
predicate: data['predicate'],
predicateData: data['predicateData']);
}