copyWith method
A copy with the given properties replaced; everything else, unknown keys included, is kept.
Implementation
GetTaskPayloadRequestParams copyWith({
String? taskId,
}) =>
GetTaskPayloadRequestParams.fromJson({
...toJson(),
if (taskId != null) 'taskId': $encode(taskId),
});