copyWith method

ServerCapabilitiesPrompts copyWith({
  1. bool? listChanged,
})

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

Implementation

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