copyWith method

CompleteRequestParamsArgument copyWith({
  1. String? name,
  2. String? value,
})

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

Implementation

CompleteRequestParamsArgument copyWith({
  String? name,
  String? value,
}) =>
    CompleteRequestParamsArgument.fromJson({
      ...toJson(),
      if (name != null) 'name': $encode(name),
      if (value != null) 'value': $encode(value),
    });