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