copyWith method

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

Implementation

SubscribeRequestParams copyWith({
  SubscribeRequestParamsMeta? meta,
  String? uri,
}) =>
    SubscribeRequestParams.fromJson({
      ...toJson(),
      if (meta != null) '_meta': $encode(meta),
      if (uri != null) 'uri': $encode(uri),
    });