LinkedInUserModel class
Class which has responsibility to keep all users information on one place
Note: You will not get an profile URL with this model. The library is still
not supporting this, but as work around you should call this API
https://api.linkedin.com/v2/me?projection=(id,profilePicture(displayImage~:playableStreams))&oauth2_access_token=HERE
where you will of course replace HERE
with a access token which you can
find inside token property
firstName & lastName & email will contain information which user has
setup on linkedIn page
while userId is LinkedIn generated field same as values inside token
Constructors
- LinkedInUserModel({LinkedInPersonalInfo? firstName, LinkedInPersonalInfo? lastName, LinkedInProfilePicture? profilePicture, String? userId, String? localizedFirstName, String? localizedLastName})
- Create user model based on response of LinkedIn APIs
-
LinkedInUserModel.fromJson(Map<
String, dynamic> json) -
Convert response from API to LinkedInUserModel object
factory
Properties
- email ↔ LinkedInProfileEmail?
-
getter/setter pair
- firstName → LinkedInPersonalInfo?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastName → LinkedInPersonalInfo?
-
final
- localizedFirstName → String?
-
final
- localizedLastName → String?
-
final
- profilePicture → LinkedInProfilePicture?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token ↔ LinkedInTokenObject
-
getter/setter pair
- userId → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited