AuthTokenModel constructor

const AuthTokenModel({
  1. required String accessToken,
  2. required String refreshToken,
  3. required String tokenType,
  4. required int expiresIn,
  5. required int refreshExpiresIn,
})

Creates an AuthTokenModel with all fields required.

For constructing instances from API responses prefer tryFromJson, which validates the structure and handles timestamp conversion.

Implementation

const AuthTokenModel({
  required this.accessToken,
  required this.refreshToken,
  required this.tokenType,
  required this.expiresIn,
  required this.refreshExpiresIn,
});