fromMap static method

dynamic fromMap(
  1. Map map
)

Implementation

static fromMap(Map map) {
  return Authorization(
      strategy: (map[_STRATEGY] != null) ? map[_STRATEGY] : STRATEGY_JWT,
      accessToken: (map[_ACCESS_TOKEN] != null) ? map[_ACCESS_TOKEN] : null,
      refreshToken:
          (map[_REFRESH_TOKEN] != null) ? map[_REFRESH_TOKEN] : null,
      refreshUrl: (map[_REFRESH_URL] != null) ? map[_REFRESH_URL] : null,
      refreshPayload:
          (map[_REFRESH_PAYLOAD] != null) ? map[_REFRESH_PAYLOAD] : null,
      refreshHeaders:
          (map[_REFRESH_HEADERS] != null) ? map[_REFRESH_HEADERS] : null,
      expires: (map[_EXPIRES] != null) ? _ensureInt(map[_EXPIRES]) : -1);
}