QuickbooksOauth2Tokens class

Entity to get oauth2 tokens from Quickbooks

Constructors

QuickbooksOauth2Tokens({required int xRefreshTokenExpiresIn, required int expiresIn, required DateTime refreshTokenExpireDate, required DateTime accessTokenExpireDate, required String refreshToken, required String accessToken, required String tokenType, String? companyId})
QuickbooksOauth2Tokens.fromJson(String source)
Creates a LevelState from a json data source
factory
QuickbooksOauth2Tokens.fromMap(Map<String, dynamic> map)
accessTokenExpireDate and refreshTokenExpireDate are generated with DateTime.now() and the expiresIn/xRefreshTokenExpiresIn values.
factory

Properties

accessToken String
getter/setter pair
accessTokenExpireDate DateTime
getter/setter pair
companyId String?
getter/setter pair
expiresIn int
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
iAccessTokenExpired bool
Indicates if the accessToken is expired
no setter
isRefreshTokenExpired bool
Indicates if the refreshToken is expired
no setter
refreshToken String
getter/setter pair
refreshTokenExpireDate DateTime
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenType String
getter/setter pair
xRefreshTokenExpiresIn int
getter/setter pair

Methods

copyWith({int? xRefreshTokenExpiresIn, int? expiresIn, DateTime? refreshTokenExpireDate, DateTime? accessTokenExpireDate, String? refreshToken, String? accessToken, String? tokenType, String? companyId}) QuickbooksOauth2Tokens
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toMap({bool quickbooksFormat = false}) Map<String, dynamic>
If quickbooksFormat is false, will send the accessTokenExpireDate and the refreshTokenExpireDate, which are not originally given by quickbooks.
toString() String
A string representation of this object.
override

Operators

operator ==(covariant QuickbooksOauth2Tokens other) bool
The equality operator.
override