FacebookAccessToken.fromMap constructor
Constructs a FacebookAccessToken instance from a Map.
This constructor is mostly use internally by this library.
Implementation
FacebookAccessToken.fromMap(Map<String, dynamic> map)
: token = map['token'],
userId = map['userId'],
expires = DateTime.fromMillisecondsSinceEpoch(
map['expires'],
isUtc: true,
),
permissions = map['permissions'].cast<String?>(),
declinedPermissions = map['declinedPermissions'].cast<String?>(),
applicationId = map['applicationId'],
expiredPermissions = map['expiredPermissions'].cast<String?>(),
graphDomain = map['graphDomain'],
isExpired = map['isExpired'],
lastRefresh = DateTime.fromMillisecondsSinceEpoch(
map['lastRefresh'],
isUtc: true,
),
isDataAccessExpired = map['isDataAccessExpired'],
dataAccessExpirationTime = DateTime.fromMillisecondsSinceEpoch(
map['dataAccessExpirationTime'],
isUtc: true,
);