copyWith method

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

Implementation

ListResourcesResultResponse copyWith({
  Object? id,
  ListResourcesResult? result,
}) =>
    ListResourcesResultResponse.fromJson({
      ...toJson(),
      if (id != null) 'id': $encode(id),
      if (result != null) 'result': $encode(result),
    });