def self.write_one(object, writer, singular = nil)
singular ||= 'gluster_volume_profile_details'
writer.write_start(singular)
href = object.href
writer.write_attribute('href', href) unless href.nil?
writer.write_attribute('id', object.id) unless object.id.nil?
BrickProfileDetailWriter.write_many(object.brick_profile_details, writer, 'brick_profile_detail', 'brick_profile_details') unless object.brick_profile_details.nil?
Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
Writer.write_string(writer, 'description', object.description) unless object.description.nil?
Writer.write_string(writer, 'name', object.name) unless object.name.nil?
NfsProfileDetailWriter.write_many(object.nfs_profile_details, writer, 'nfs_profile_detail', 'nfs_profile_details') unless object.nfs_profile_details.nil?
writer.write_end
end