SharedProfileSession.fromJson constructor

SharedProfileSession.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SharedProfileSession.fromJson(Map<String, Object?> json) {
  return SharedProfileSession(
    accessToken: _nullableString(json["access_token"]),
    refreshToken: _nullableString(json["refresh_token"]),
    expiresAt: _nullableInt(json["expires_at"]),
    tokenType: _nullableString(json["token_type"]) ?? "Bearer",
    scope: _nullableString(json["scope"]),
    idToken: _nullableString(json["id_token"]),
  );
}