Serialize domains