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 toMap() { return { 'tranID': tranID, 'sgtGntrCreatedAt': sgtGntrCreatedAt, 'sgtGntrNarration': sgtGntrNarration, 'sgtGntrvaluedate': sgtGntrvaluedate, 'deposit': deposit, 'withdrawal': withdrawal, 'status': status, 'sgtGntramt': sgtGntramt, }; } factory DepositAccountTransaction.fromMap(Map 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' '}'; } }