         coder.encodeObject(notifyOfCommentsOnPostWatchViaPush, forKey: "notifyOfCommentsOnPostWatchViaPush")
         coder.encodeObject(notifyOfCommentsOnPostWatchViaEmail, forKey: "notifyOfCommentsOnPostWatchViaEmail")
         coder.encodeObject(notifyOfApprovedSubmissionsFromFollowingViaPush, forKey: "notifyOfApprovedSubmissionsFromFollowingViaPush")
+        coder.encodeObject(notifyOfApprovedSubmissionsFromFollowingViaEmail, forKey: "notifyOfApprovedSubmissionsFromFollowingViaEmail")
         coder.encodeObject(hasAnnouncementsEnabled, forKey: "hasAnnouncementsEnabled")
         coder.encodeObject(discoverable, forKey: "discoverable")
         super.encode(with: coder.coder)

import SwiftyJSON


// version 1: initial
// version 2: added hasAutoWatchEnabled and moved in notifyOfWatch* settings
// version 3: added notifyOfAnnouncementsViaPush
// version 4: added hasAnnouncementsEnabled
// version 5: added isCommunity
// version 6: added creatorTypeCategoryIds
// version 7: added notifyOfApprovedSubmissionsViaPush
// version 8: added notifyOfApprovedSubmissionsFromFollowingViaPush
// version 9: added notifyOfWhatYouMissedViaEmail
let ProfileVersion: Int = 9

@objc(Profile)
final class Profile: JSONAble {
    enum CreatorType {
        case none
        case fan

        case coverImageUrl = "remote_cover_image_url"
        case webOnboardingVersion = "web_onboarding_version"
        case creatorTypeCategoryIds = "creator_type_category_ids"
        case isHireable = "is_hireable"
        case isCollaborateable = "is_collaborateable"

        case username
        case email
