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, String? eventsUrl, String? followersUrl, String? followingUrl, String? gistsUrl, String? gravatarId, String? nodeId, String? organizationsUrl, String? receivedEventsUrl, String? reposUrl, DateTime? starredAt, String? starredUrl, String? subscriptionsUrl, String? type, String? url})
-
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
- eventsUrl ↔ String?
-
Example:
https://api.github.com/users/octocat/events{/privacy}
getter/setter pair - followersCount ↔ int?
-
Number of followers that this user has
getter/setter pair
- followersUrl ↔ String?
-
Example:
https://api.github.com/users/octocat/followers
getter/setter pair - followingCount ↔ int?
-
Number of Users that this user follows
getter/setter pair
- followingUrl ↔ String?
-
Example:
https://api.github.com/users/octocat/following{/other_user}
getter/setter pair - gistsUrl ↔ String?
-
Example:
https://api.github.com/users/octocat/gists{/gist_id}
getter/setter pair - gravatarId ↔ String?
-
Example:
41d064eb2195891e12d0413f63227ea7
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
- nodeId ↔ String?
-
Example:
MDQ6VXNlcjE=
getter/setter pair - organizationsUrl ↔ String?
-
Example:
https://api.github.com/users/octocat/orgs
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
- receivedEventsUrl ↔ String?
-
Example:
https://api.github.com/users/octocat/received_events
getter/setter pair - reposUrl ↔ String?
-
Example:
https://api.github.com/users/octocat/repos
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
- starredAt ↔ DateTime?
-
getter/setter pair
- starredUrl ↔ String?
-
Example:
https://api.github.com/users/octocat/starred{/owner}{/repo}
getter/setter pair - subscriptionsUrl ↔ String?
-
Example:
https://api.github.com/users/octocat/subscriptions
getter/setter pair - twitterUsername ↔ String?
-
The username of the twitter account (without leading @)
getter/setter pair
- type ↔ String?
-
Example:
User
getter/setter pair - updatedAt ↔ DateTime?
-
Last time this User was updated.
getter/setter pair
- url ↔ String?
-
Example:
https://api.github.com/users/octocat
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