OutputVariable.fromJson constructor

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

Implementation

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