you could also have 1 enum field LAST_OPERATION {SERIALIZE, DESERIALIZE}