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