UserModel constructor Null safety

UserModel(
  1. {int? year,
  2. int? month,
  3. int? day,
  4. CityModel? city,
  5. bool? isSubscribed,
  6. int? minAge,
  7. required int id,
  8. String? firstName,
  9. String? lastName,
  10. String? mobile,
  11. String? email,
  12. bool? isActive,
  13. int? zoneId,
  14. Gender? gender}
)

Implementation

UserModel({
  this.year,
  this.month,
  this.day,
  this.city,
  this.isSubscribed,
  this.minAge,
  required this.id,
  this.firstName,
  this.lastName,
  this.mobile,
  this.email,
  this.isActive,
  this.zoneId,
  this.gender,
});