toMap method Null safety

Map<String, String> toMap()

Implementation

Map<String, String> toMap() => {
      "token": token,
      "token_type_hint": tokenType == TokenType.accessToken
          ? "access_token"
          : "refresh_token",
    };