copyWith method

PostComments copyWith({
  1. String? kind,
  2. String? id,
  3. String? postId,
  4. String? blogId,
  5. DateTime? published,
  6. DateTime? updated,
  7. String? selfLink,
  8. String? content,
  9. Author? author,
})

Implementation

PostComments copyWith({
  String? kind,
  String? id,
  String? postId,
  String? blogId,
  DateTime? published,
  DateTime? updated,
  String? selfLink,
  String? content,
  Author? author,
}) {
  return PostComments(
    kind: kind ?? this.kind,
    id: id ?? this.id,
    postId: postId ?? this.postId,
    blogId: blogId ?? this.blogId,
    published: published ?? this.published,
    updated: updated ?? this.updated,
    selfLink: selfLink ?? this.selfLink,
    content: content ?? this.content,
    author: author ?? this.author,
  );
}