Cooldown Added in Beneficiary

This commit is contained in:
2025-11-10 16:42:29 +05:30
parent 078e715d20
commit d6f61ebb31
4 changed files with 366 additions and 121 deletions

View File

@@ -1,7 +1,10 @@
import 'dart:convert';
class Beneficiary {
final String accountNo;
final String accountType;
final String name;
final DateTime? createdAt;
final String ifscCode;
final String? bankName;
final String? branchName;
@@ -11,6 +14,7 @@ class Beneficiary {
required this.accountNo,
required this.accountType,
required this.name,
this.createdAt,
required this.ifscCode,
this.bankName,
this.branchName,
@@ -21,6 +25,7 @@ class Beneficiary {
return Beneficiary(
accountNo: json['account_no'] ?? json['accountNo'] ?? '',
accountType: json['account_type'] ?? json['accountType'] ?? '',
createdAt: json['createdAt'] == null ? null : DateTime.tryParse(json['createdAt']),
name: json['name'] ?? '',
ifscCode: json['ifsc_code'] ?? json['ifscCode'] ?? '',
bankName: json['bank_name'] ?? json['bankName'] ?? '',