LoggingMessageNotificationParams.toMCP constructor

LoggingMessageNotificationParams.toMCP(
  1. Map<String, Object?> map
)

Implementation

factory LoggingMessageNotificationParams.toMCP(Map<String, Object?> map) {
  return LoggingMessageNotificationParams(
    $meta: map['_meta'] != null
        ? MetaObject.toMCP(map['_meta'] as Map<String, Object?>)
        : null,
    level: LoggingLevel.to(map['level'] as String),
    logger: map['logger'] as String?,
    data: map['data'],
  );
}