UserModel class Null safety

Constructors

UserModel({int? year, int? month, int? day, CityModel? city, bool? isSubscribed, int? minAge, required int id, String? firstName, String? lastName, String? mobile, String? email, bool? isActive, int? zoneId, Gender? gender})
UserModel.fromJson(Map<String, dynamic> json)
factory

Properties

city CityModel?
read / write
day int?
read / write
email String?
read / write
firstName String?
read / write
gender Gender?
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write
isActive bool?
read / write
isSubscribed bool?
read / write
lastName String?
read / write
minAge int?
read / write
mobile String?
read / write
month int?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
year int?
read / write
zoneId int?
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited