In order to view this lesson, you must purchase this course.
This lesson will cover the fun data fetching portion of our course. Now that we have our users stored inside of Firestore, we can make a very easy call to fetch this data and transform it into an actual User. Let's go ahead and complete this process by introducing a custom initializer for our <b>User</b> such that it can take in a document dictionary.
We'll also have to be very careful of how properties are set up if they don't currently exist inside of Firestore.