SubscriptionsAcknowledgedNotificationParams.toMCP constructor

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

Implementation

factory SubscriptionsAcknowledgedNotificationParams.toMCP(
  Map<String, Object?> map,
) {
  return SubscriptionsAcknowledgedNotificationParams(
    $meta: map['_meta'] != null
        ? NotificationMetaObject.toMCP(map['_meta'] as Map<String, Object?>)
        : null,
    notifications: SubscriptionFilter.toMCP(
      map['notifications'] as Map<String, Object?>,
    ),
  );
}