copyWith method

NotificationMetaObject copyWith({
  1. Object? subscriptionId,
})

A copy with the given properties replaced; everything else, unknown keys included, is kept.

Implementation

NotificationMetaObject copyWith({
  Object? subscriptionId,
}) =>
    NotificationMetaObject.fromJson({
      ...toJson(),
      if (subscriptionId != null) 'io.modelcontextprotocol/subscriptionId': $encode(subscriptionId),
    });