Config class

.dash_cli Config file model

Constructors

Config({String? authToken, String? refreshToken, String? username, String? email})
Config.fromJson(Map<String, dynamic> json)
Create a Config object from a JSON object
factory

Properties

authToken String?
Access token
getter/setter pair
email String?
User Email
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isAuthTokenExpired bool
Check if the Auth token is expired
no setter
isRefreshTokenExpired bool
Check if the Refresh token is expired
no setter
refreshToken String?
Refresh token
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
Username (Optional, Need not to be present in the config file)
getter/setter pair

Methods

copyWith({String? authToken, String? refreshToken, String? username, String? email}) Config
Copy this Config object with new values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert this Config object to a JSON object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited