copyWith method

BlogPostUpdateRequest copyWith({
  1. String? id,
  2. BlogPostUpdateRequestStatus? status,
  3. String? title,
  4. String? spaceId,
  5. dynamic body,
  6. BlogPostUpdateRequestVersion? version,
})

Implementation

BlogPostUpdateRequest copyWith(
    {String? id,
    BlogPostUpdateRequestStatus? status,
    String? title,
    String? spaceId,
    dynamic body,
    BlogPostUpdateRequestVersion? version}) {
  return BlogPostUpdateRequest(
    id: id ?? this.id,
    status: status ?? this.status,
    title: title ?? this.title,
    spaceId: spaceId ?? this.spaceId,
    body: body ?? this.body,
    version: version ?? this.version,
  );
}