public override IPListElement Serialize() { var dic = new PListDictionary(); dic.AddIfNotEmpty(TEAM_ID_KEY, TeamId); if (!AutomaticProvisioning) { dic.Add(AUTO_PROVISIONING_KEY, AutomaticProvisioning); } return(dic); }
public override PListDictionary Serialize() { var dic = new PListDictionary(); dic.AddIfTrue(KEY_VALUE_STORAGE_KEY, KeyValueStorage); dic.AddIfTrue(ICLOUD_DOCUMENTS_KEY, iCloudDocuments); dic.AddIfTrue(CLOUDKIT_KEY, CloudKit); dic.AddIfTrue(USE_CUSTOM_CONTAINERS_KEY, UseCustomContainers); dic.AddIfNotEmpty(UBIQUITY_KVSTORE_KEY, UbiquityKvstoreIdentifier); if (CustomContainers.Count > 0) { dic.Add(CUSTOM_CONTAINERS_KEY, new PListArray(CustomContainers)); } return(dic); }