45 lines
1.2 KiB
Dart
45 lines
1.2 KiB
Dart
class BeneficiaryRecieve {
|
|
final String accountNo;
|
|
final String accountType;
|
|
final String name;
|
|
final String ifscCode;
|
|
final String bankName;
|
|
final String branchName;
|
|
|
|
|
|
BeneficiaryRecieve({
|
|
required this.accountNo,
|
|
required this.accountType,
|
|
required this.name,
|
|
required this.ifscCode,
|
|
required this.bankName,
|
|
required this.branchName,
|
|
});
|
|
|
|
factory BeneficiaryRecieve.fromJson(Map<String, dynamic> json) {
|
|
return BeneficiaryRecieve(
|
|
accountNo: json['account_no'] ?? '',
|
|
accountType: json['account_type'] ?? '',
|
|
name: json['name'] ?? '',
|
|
ifscCode: json['ifsc_code'] ?? '',
|
|
bankName: json['bank_name'] ?? '',
|
|
branchName: json['branch_name'] ?? '',
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'account_no': accountNo,
|
|
'account_type': accountType,
|
|
'name': name,
|
|
'ifsc_code' : ifscCode,
|
|
'bank_name' : bankName,
|
|
'branch_name' : branchName
|
|
};
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ListBeneficiary(accountNo: $accountNo, accountType: $accountType, ifscCode: $ifscCode, name: $name, bankName: $bankName, branchName: $branchName)';
|
|
}
|
|
} |