copyWith method

ServerCapabilitiesResources copyWith({
  1. bool? listChanged,
  2. bool? subscribe,
})

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

Implementation

ServerCapabilitiesResources copyWith({
  bool? listChanged,
  bool? subscribe,
}) =>
    ServerCapabilitiesResources.fromJson({
      ...toJson(),
      if (listChanged != null) 'listChanged': $encode(listChanged),
      if (subscribe != null) 'subscribe': $encode(subscribe),
    });