copy

fun copy(role: String? = this.role, parts: List<Part> = this.parts): Content(source)

Returns a copy of this object, with the provided parameters overwriting the originals.