Skip to content

Instantly share code, notes, and snippets.

@vaygeth89
Created October 12, 2021 03:31
Show Gist options
  • Save vaygeth89/b6fcb437321809376aafb7c7b4eef77f to your computer and use it in GitHub Desktop.
Save vaygeth89/b6fcb437321809376aafb7c7b4eef77f to your computer and use it in GitHub Desktop.
Our models
class SignIn {
final String email;
final String password;
SignIn({
required this.email,
required this.password,
});
}
class RenewAccessToken {
String refreshToken;
RenewAccessToken({
required this.refreshToken,
});
}
class AuthenticationData {
final String id;
final String accessToken;
final String refreshToken;
AuthenticationData({
required this.accessToken,
required this.refreshToken,
required this.id,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment