copyWith method

RequestParams copyWith({
  1. RequestMetaObject? meta,
})

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

Implementation

RequestParams copyWith({
  RequestMetaObject? meta,
}) =>
    RequestParams.fromJson({
      ...toJson(),
      if (meta != null) '_meta': $encode(meta),
    });