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