McpNotification.fromJson constructor

McpNotification.fromJson(
  1. Map<String, dynamic> json
)

Create notification from JSON map

Implementation

factory McpNotification.fromJson(Map<String, dynamic> json) {
  return McpNotification(
    method: json['method'] as String,
    params: json['params'] as Map<String, dynamic>?,
  );
}