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/DepositAccountTransaction.dart

62 lines
1.7 KiB
Dart

class DepositAccountTransaction {
String tranID = "";
String sgtGntrCreatedAt = "";
String sgtGntrNarration = "";
String sgtGntrvaluedate = "";
String deposit = "";
String withdrawal = "";
String status = "";
String sgtGntramt = "";
DepositAccountTransaction({
this.tranID = "",
this.sgtGntrCreatedAt = "",
this.sgtGntrNarration = "",
this.sgtGntrvaluedate = "",
this.deposit = "",
this.withdrawal = "",
this.status = "",
this.sgtGntramt = "",
});
Map<String, dynamic> toMap() {
return {
'tranID': tranID,
'sgtGntrCreatedAt': sgtGntrCreatedAt,
'sgtGntrNarration': sgtGntrNarration,
'sgtGntrvaluedate': sgtGntrvaluedate,
'deposit': deposit,
'withdrawal': withdrawal,
'status': status,
'sgtGntramt': sgtGntramt,
};
}
factory DepositAccountTransaction.fromMap(Map<String, dynamic> map) {
return DepositAccountTransaction(
tranID: map['tranID'] ?? '',
sgtGntrCreatedAt: map['sgtGntrCreatedAt'] ?? '',
sgtGntrNarration: map['sgtGntrNarration'] ?? '',
sgtGntrvaluedate: map['sgtGntrvaluedate'] ?? '',
deposit: map['deposit'] ?? '',
withdrawal: map['withdrawal'] ?? '',
status: map['status'] ?? '',
sgtGntramt: map['sgtGntramt'] ?? '',
);
}
@override
String toString() {
return 'DepositAccountTransaction{'
'tranID: $tranID, '
'sgtGntrCreatedAt: $sgtGntrCreatedAt, '
'sgtGntrNarration: $sgtGntrNarration, '
'sgtGntrvaluedate: $sgtGntrvaluedate, '
'deposit: $deposit, '
'withdrawal: $withdrawal, '
'status: $status, '
'sgtGntramt: $sgtGntramt'
'}';
}
}