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