notNull property Null safety
Declares annotated field as NOT NULL for serialization / deserialization process
i.e needs to be present in incoming JSON payload object as not NULL value
Optional custom message notNullMessage could be provided as well
If set to
true states of required, ignore, ignoreForDeserialization,
ignoreForSerialization, ignoreIfNull, Json.ignoreNullMembers has no meaning.
final bool? notNull;