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