copyWith method
Implementation
CommandTaskDTO copyWith(
{String? id,
String? gensetSerialNumber,
enums.CommandTaskStatusDTO? status,
DateTime? requestTimestamp,
CommandTaskRequestDTO? request,
DateTime? responseTimestamp,
CommandTaskResponseDTO? response}) {
return CommandTaskDTO(
id: id ?? this.id,
gensetSerialNumber: gensetSerialNumber ?? this.gensetSerialNumber,
status: status ?? this.status,
requestTimestamp: requestTimestamp ?? this.requestTimestamp,
request: request ?? this.request,
responseTimestamp: responseTimestamp ?? this.responseTimestamp,
response: response ?? this.response);
}