TransactionResponse constructor

TransactionResponse({
  1. Int64? txId,
  2. TransactionError? error,
  3. List<int>? accountCreated,
  4. Int64? timestamp,
  5. CreateTransfer? transferCommitted,
  6. OfflineToken? token,
})

Implementation

factory TransactionResponse({
  $fixnum.Int64? txId,
  TransactionError? error,
  $core.List<$core.int>? accountCreated,
  $fixnum.Int64? timestamp,
  CreateTransfer? transferCommitted,
  OfflineToken? token,
}) {
  final $result = create();
  if (txId != null) {
    $result.txId = txId;
  }
  if (error != null) {
    $result.error = error;
  }
  if (accountCreated != null) {
    $result.accountCreated = accountCreated;
  }
  if (timestamp != null) {
    $result.timestamp = timestamp;
  }
  if (transferCommitted != null) {
    $result.transferCommitted = transferCommitted;
  }
  if (token != null) {
    $result.token = token;
  }
  return $result;
}