copyWith method
Implementation
AgentRequest copyWith({
Object? id = _acpCopyWithAbsent,
Object? method = _acpCopyWithAbsent,
Object? params = _acpCopyWithAbsent,
}) => AgentRequest(
id: identical(id, _acpCopyWithAbsent) ? this.id : id as RequestId,
method: identical(method, _acpCopyWithAbsent)
? this.method
: method as String,
params: identical(params, _acpCopyWithAbsent)
? this.params
: params as Object?,
);