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.
uco-mobile-poc/lib/app/models/BeneficiaryAccountModel.dart

62 lines
2.0 KiB
Dart

class BeneficiaryAccountModel {
String porOrgacode = "";
String email = "";
String pcrCurrcode = "";
String pcrCurrdesc = "";
String pcrCurrshort = "";
String mbmBkmstitleRef = "";
String mbmBkmsnumberRef = "";
String refPhoneNumber = "";
String refEmail = "";
String refNickName = "";
BeneficiaryAccountModel({
this.porOrgacode = "",
this.email = "",
this.pcrCurrcode = "",
this.pcrCurrdesc = "",
this.pcrCurrshort = "",
this.mbmBkmstitleRef = "",
this.mbmBkmsnumberRef = "",
this.refPhoneNumber = "",
this.refEmail = "",
this.refNickName = "",
});
Map<String, dynamic> toMap() {
return {
'porOrgacode': this.porOrgacode,
'email': this.email,
'pcrCurrcode': this.pcrCurrcode,
'pcrCurrdesc': this.pcrCurrdesc,
'pcrCurrshort': this.pcrCurrshort,
'mbmBkmstitleRef': this.mbmBkmstitleRef,
'mbmBkmsnumberRef': this.mbmBkmsnumberRef,
'refPhoneNumber': this.refPhoneNumber,
'refEmail': this.refEmail,
'refNickName': this.refNickName,
};
}
factory BeneficiaryAccountModel.fromMap(Map<String, dynamic> map) {
return BeneficiaryAccountModel(
porOrgacode: map['porOrgacode'] ?? "",
email: map['email'] ?? "",
pcrCurrcode: map['pcrCurrcode'] ?? "",
pcrCurrdesc: map['pcrCurrdesc'] ?? "",
pcrCurrshort: map['pcrCurrshort'] ?? "",
mbmBkmstitleRef: map['mbmBkmstitleRef'] ?? "",
mbmBkmsnumberRef: map['mbmBkmsnumberRef'] ?? "",
refPhoneNumber: map['refPhoneNumber'] ?? "",
refEmail: map['refEmail'] ?? "",
refNickName: map['refNickName'] ?? "",
);
}
@override
String toString() {
return 'BeneficiaryAccountModel{porOrgacode: $porOrgacode, email: $email, pcrCurrcode: $pcrCurrcode, pcrCurrdesc: $pcrCurrdesc, pcrCurrshort: $pcrCurrshort, mbmBkmstitleRef: $mbmBkmstitleRef, mbmBkmsnumberRef: $mbmBkmsnumberRef, refPhoneNumber: $refPhoneNumber, refEmail: $refEmail, refNickName: $refNickName}';
}
}