User class Null safety

Model class for a user.



User({int? id, String? login, String? avatarUrl, String? htmlUrl, bool? siteAdmin, String? name, String? company, String? blog, String? location, String? email, bool? hirable, String? bio, int? publicReposCount, int? publicGistsCount, int? followersCount, int? followingCount, DateTime? createdAt, DateTime? updatedAt})
User.fromJson(Map<String, dynamic> input)


avatarUrl String?
Avatar URL
read / write
bio String?
The User's Biography
read / write
blog String?
Link to User's Blog
read / write
company String?
Name of User's Company
read / write
createdAt DateTime?
The time this User was created.
read / write
email String?
User's Email
read / write
followersCount int?
Number of followers that this user has
@JsonKey(name: 'followers'), read / write
followingCount int?
Number of Users that this user follows
@JsonKey(name: 'following'), read / write
hashCode int
The hash code for this object.
read-only, inherited
hirable bool?
If this user is hirable
read / write
htmlUrl String?
Url to this user's profile.
read / write
id int?
User ID
read / write
json Map?
@JsonKey(ignore: true), read / write
location String?
User's Location
read / write
login String?
User's Username
read / write
name String?
User's Name
read / write
publicGistsCount int?
Number of public gists that this user has
@JsonKey(name: 'public_gists'), read / write
publicReposCount int?
Number of public repositories that this user has
@JsonKey(name: 'public_repos'), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
siteAdmin bool?
If the user is a site administrator
read / write
twitterUsername String?
The username of the twitter account (without leading @)
read / write
updatedAt DateTime?
Last time this User was updated.
read / write


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


operator ==(Object other) bool
The equality operator.