FacebookUserProfile class

Model class to convert the user data from the Map which response from Facebook into a model object.

This will help developer easier to access the Facebook response data via property without encoding or checking the keys and values inside the Map.

Constructors

FacebookUserProfile({String? id, String? name, String? firstName, String? lastName, String? email, String? middleName, String? nameFormat, FacebookPictureData? picture, String? shortName})
Default constructor.
FacebookUserProfile.fromJson(Map<String, dynamic> data)
Constructs a FacebookUserProfile instance from a Map.

Properties

email String?
The email that the user use for their Facebook account.
getter/setter pair
firstName String?
The first name of the user.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The user Facebook's id.
getter/setter pair
lastName String?
The last name of the user.
getter/setter pair
middleName String?
The middle name of the user.
getter/setter pair
name String?
The full name of the user.
getter/setter pair
nameFormat String?
The format of the user's name.
getter/setter pair
picture FacebookPictureData?
User's avatar data.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortName String?
The short name of the user.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Transforms this user profile data object to a Map.
toString() String
A string representation of this object.
inherited

Operators

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