copyWith method

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

Implementation

SetLevelRequestParams copyWith({
  SetLevelRequestParamsMeta? meta,
  LoggingLevel? level,
}) =>
    SetLevelRequestParams.fromJson({
      ...toJson(),
      if (meta != null) '_meta': $encode(meta),
      if (level != null) 'level': $encode(level),
    });