We made a change in one of the previous PRs, that made the Email field optional when creating Contact objects. However, there was no proper support for handling empty email values, and those contacts without email specified were given the default value of "no@email.com" instead. This PR adds in a proper support of empty email fields using the Optional class.
Changes
Add proper support for having empty email for Contact objects, using Optional class.
Context
We made a change in one of the previous PRs, that made the Email field optional when creating Contact objects. However, there was no proper support for handling empty email values, and those contacts without email specified were given the default value of "no@email.com" instead. This PR adds in a proper support of empty email fields using the Optional class.
Changes