35 lines
712 B
Dart
35 lines
712 B
Dart
|
|
class SignupStartRequest {
|
||
|
|
final String username;
|
||
|
|
final String email;
|
||
|
|
final String password;
|
||
|
|
|
||
|
|
const SignupStartRequest({
|
||
|
|
required this.username,
|
||
|
|
required this.email,
|
||
|
|
required this.password,
|
||
|
|
});
|
||
|
|
|
||
|
|
Map<String, dynamic> toJson() => {
|
||
|
|
'username': username,
|
||
|
|
'email': email,
|
||
|
|
'password': password,
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
class SignupVerifyRequest {
|
||
|
|
final String email;
|
||
|
|
final String token;
|
||
|
|
|
||
|
|
const SignupVerifyRequest({required this.email, required this.token});
|
||
|
|
|
||
|
|
Map<String, dynamic> toJson() => {'email': email, 'token': token};
|
||
|
|
}
|
||
|
|
|
||
|
|
class SignupResendRequest {
|
||
|
|
final String email;
|
||
|
|
|
||
|
|
const SignupResendRequest({required this.email});
|
||
|
|
|
||
|
|
Map<String, dynamic> toJson() => {'email': email};
|
||
|
|
}
|