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