User class

Model class for a user.

Implementers
Annotations
  • @JsonSerializable()

Constructors

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)
factory

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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