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.
67 lines
1.6 KiB
Dart
67 lines
1.6 KiB
Dart
|
1 month ago
|
import 'dart:convert';
|
||
|
|
|
||
|
|
class ResendOtpUsendModel {
|
||
|
|
String? porOrgacode;
|
||
|
|
String? pctCstycode;
|
||
|
|
String? channelCode;
|
||
|
|
String? cmpCustcode;
|
||
|
|
String? email;
|
||
|
|
String? pinType;
|
||
|
|
bool? isOtpRequired;
|
||
|
|
|
||
|
|
ResendOtpUsendModel({
|
||
|
|
this.porOrgacode,
|
||
|
|
this.pctCstycode,
|
||
|
|
this.channelCode,
|
||
|
|
this.cmpCustcode,
|
||
|
|
this.email,
|
||
|
|
this.pinType,
|
||
|
|
this.isOtpRequired,
|
||
|
|
});
|
||
|
|
|
||
|
|
Map<String, dynamic> toMap() {
|
||
|
|
final result = <String, dynamic>{};
|
||
|
|
|
||
|
|
if (porOrgacode != null) {
|
||
|
|
result.addAll({'porOrgacode': porOrgacode});
|
||
|
|
}
|
||
|
|
if (pctCstycode != null) {
|
||
|
|
result.addAll({'pctCstycode': pctCstycode});
|
||
|
|
}
|
||
|
|
if (channelCode != null) {
|
||
|
|
result.addAll({'channelCode': channelCode});
|
||
|
|
}
|
||
|
|
if (cmpCustcode != null) {
|
||
|
|
result.addAll({'cmpCustcode': cmpCustcode});
|
||
|
|
}
|
||
|
|
if (email != null) {
|
||
|
|
result.addAll({'email': email});
|
||
|
|
}
|
||
|
|
if (pinType != null) {
|
||
|
|
result.addAll({'pinType': pinType});
|
||
|
|
}
|
||
|
|
if (isOtpRequired != null) {
|
||
|
|
result.addAll({'isOtpRequired': isOtpRequired});
|
||
|
|
}
|
||
|
|
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
|
||
|
|
factory ResendOtpUsendModel.fromMap(Map<String, dynamic> map) {
|
||
|
|
return ResendOtpUsendModel(
|
||
|
|
porOrgacode: map['porOrgacode'],
|
||
|
|
pctCstycode: map['pctCstycode'],
|
||
|
|
channelCode: map['channelCode'],
|
||
|
|
cmpCustcode: map['cmpCustcode'],
|
||
|
|
email: map['email'],
|
||
|
|
pinType: map['pinType'],
|
||
|
|
isOtpRequired: map['isOtpRequired'],
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
String toJson() => json.encode(toMap());
|
||
|
|
|
||
|
|
factory ResendOtpUsendModel.fromJson(String source) =>
|
||
|
|
ResendOtpUsendModel.fromMap(json.decode(source));
|
||
|
|
}
|