MsalUser.fromJson constructor

MsalUser.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MsalUser.fromJson(Map<String, dynamic> json) {
  return MsalUser(
    username: json['preferred_username'] ?? '',
    displayName: json['name'] ?? '',
    accessToken: json['access_token'] ?? '',
    tokenCreatedAt: json['iat'] ?? '',
    tokenExpiresOn: json['exp'] ?? '',
    idToken: json['id_token'] ?? '',
  );
}