moved the writeOnly property down to the bottom for serialization/deserialization of metadata