OutputCoin.fromJson constructor

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

Implementation

factory OutputCoin.fromJson(Map<String, dynamic> data) {
  return OutputCoin(
    to: addHexPrefix(data['to']),
    amount: parseBigInt(data['amount']),
    assetId: addHexPrefix(data['assetId']),
  );
}