You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.2 KiB
Dart
48 lines
1.2 KiB
Dart
class AuthenticationRequest {
|
|
String email = "";
|
|
String password = "";
|
|
bool isOtpRequired = false;
|
|
String porOrgacode = "";
|
|
String channelCode = "";
|
|
|
|
AuthenticationRequest.empty()
|
|
: this.email = "",
|
|
this.password = "",
|
|
this.isOtpRequired = false,
|
|
this.porOrgacode = "",
|
|
this.channelCode = "";
|
|
|
|
AuthenticationRequest({
|
|
this.email = "",
|
|
this.password = "",
|
|
this.isOtpRequired = false,
|
|
this.porOrgacode = "",
|
|
this.channelCode = "",
|
|
});
|
|
|
|
Map<String, dynamic> toMap() {
|
|
return {
|
|
'email': email,
|
|
'password': password,
|
|
'isOtpRequired': isOtpRequired,
|
|
'porOrgacode': porOrgacode,
|
|
'channelCode': channelCode,
|
|
};
|
|
}
|
|
|
|
factory AuthenticationRequest.fromMap(Map<String, dynamic> map) {
|
|
return AuthenticationRequest(
|
|
email: map['email'],
|
|
password: map['password'],
|
|
isOtpRequired: map['isOtpRequired'],
|
|
porOrgacode: map['porOrgacode'],
|
|
channelCode: map['channelCode'],
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthenticationRequest{email: $email, password: $password, isOtpRequired: $isOtpRequired, porOrgacode: $porOrgacode, channelCode: $channelCode}';
|
|
}
|
|
}
|