Transaction constructor

Transaction({
  1. Transaction_Transfer? transfer,
  2. Transaction_Raw? rawTransaction,
})

Implementation

factory Transaction({
  Transaction_Transfer? transfer,
  Transaction_Raw? rawTransaction,
}) {
  final _result = create();
  if (transfer != null) {
    _result.transfer = transfer;
  }
  if (rawTransaction != null) {
    _result.rawTransaction = rawTransaction;
  }
  return _result;
}