TxnRequest constructor

TxnRequest({
  1. String? receiver,
  2. double? amount,
  3. String? comment,
  4. int? type,
  5. String? purpose,
  6. String? externalParty,
  7. String? ticker,
  8. bool? privateKeyOnly,
})

Implementation

factory TxnRequest({
  $core.String? receiver,
  $core.double? amount,
  $core.String? comment,
  $core.int? type,
  $core.String? purpose,
  $core.String? externalParty,
  $core.String? ticker,
  $core.bool? privateKeyOnly,
}) {
  final _result = create();
  if (receiver != null) {
    _result.receiver = receiver;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (comment != null) {
    _result.comment = comment;
  }
  if (type != null) {
    _result.type = type;
  }
  if (purpose != null) {
    _result.purpose = purpose;
  }
  if (externalParty != null) {
    _result.externalParty = externalParty;
  }
  if (ticker != null) {
    _result.ticker = ticker;
  }
  if (privateKeyOnly != null) {
    _result.privateKeyOnly = privateKeyOnly;
  }
  return _result;
}