TransactionDetails constructor

TransactionDetails({
  1. String? transactionId,
  2. String? transactionType,
  3. String? blockId,
  4. int? mode,
  5. String? senderDID,
  6. String? receiverDID,
  7. double? amount,
  8. double? totalTime,
  9. String? comment,
  10. Timestamp? dateTime,
  11. bool? status,
})

Implementation

factory TransactionDetails({
  $core.String? transactionId,
  $core.String? transactionType,
  $core.String? blockId,
  $core.int? mode,
  $core.String? senderDID,
  $core.String? receiverDID,
  $core.double? amount,
  $core.double? totalTime,
  $core.String? comment,
  $2.Timestamp? dateTime,
  $core.bool? status,
}) {
  final _result = create();
  if (transactionId != null) {
    _result.transactionId = transactionId;
  }
  if (transactionType != null) {
    _result.transactionType = transactionType;
  }
  if (blockId != null) {
    _result.blockId = blockId;
  }
  if (mode != null) {
    _result.mode = mode;
  }
  if (senderDID != null) {
    _result.senderDID = senderDID;
  }
  if (receiverDID != null) {
    _result.receiverDID = receiverDID;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (totalTime != null) {
    _result.totalTime = totalTime;
  }
  if (comment != null) {
    _result.comment = comment;
  }
  if (dateTime != null) {
    _result.dateTime = dateTime;
  }
  if (status != null) {
    _result.status = status;
  }
  return _result;
}