Result.toMCP constructor
Implementation
factory Result.toMCP(Map<String, Object?> map) {
return Result(
$meta: map['_meta'] != null
? ResultMetaObject.toMCP(map['_meta'] as Map<String, Object?>)
: null,
resultType: map['resultType'] as String? ?? 'complete',
unknown: Map<String, Object?>.from(map)
..removeWhere((key, _) => key == '_meta' || key == 'resultType'),
);
}