copyWith method

ClientCapabilitiesTasksRequestsSampling copyWith({
  1. Map<String, Object?>? createMessage,
})

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

Implementation

ClientCapabilitiesTasksRequestsSampling copyWith({
  Map<String, Object?>? createMessage,
}) =>
    ClientCapabilitiesTasksRequestsSampling.fromJson({
      ...toJson(),
      if (createMessage != null) 'createMessage': $encode(createMessage),
    });