copyWithWrapped method
Implementation
CommandTaskDTO copyWithWrapped(
{Wrapped<String?>? id,
Wrapped<String?>? gensetSerialNumber,
Wrapped<enums.CommandTaskStatusDTO?>? status,
Wrapped<DateTime?>? requestTimestamp,
Wrapped<CommandTaskRequestDTO?>? request,
Wrapped<DateTime?>? responseTimestamp,
Wrapped<CommandTaskResponseDTO?>? response}) {
return CommandTaskDTO(
id: (id != null ? id.value : this.id),
gensetSerialNumber: (gensetSerialNumber != null
? gensetSerialNumber.value
: this.gensetSerialNumber),
status: (status != null ? status.value : this.status),
requestTimestamp: (requestTimestamp != null
? requestTimestamp.value
: this.requestTimestamp),
request: (request != null ? request.value : this.request),
responseTimestamp: (responseTimestamp != null
? responseTimestamp.value
: this.responseTimestamp),
response: (response != null ? response.value : this.response));
}