In order to view this lesson, you must purchase this course.
Now whenever a user modifies their settings, we'll have to allow them to perform a save operation. This should safely persist the new changes into Firestore so that we can retrieve this information again. Doing this using a JSONEncoder will help us save a lot of headache of manually creating dictionaries. Let's see how the Encodable protocol works in today's lesson.