GetPromptResultResponse.toMCP constructor
Implementation
factory GetPromptResultResponse.toMCP(Map<String, Object?> map) {
return GetPromptResultResponse(
id: map['id']?.toString() ?? '-1',
result: GetPromptResult.toMCP(map['result'] as Map<String, Object?>),
);
}