const String transactionRecTableName = 'transactions_rec'; const String transactionRecColumnId = 'id'; const String transactionRecTransactionIdRef = 'transaction_id'; const String transactionRecColumnData = 'data'; const String transactionRecColumnCreatedAt = 'createdAt'; class TransactionRec { TransactionRec(); TransactionRec.fromMap(Map map) { id = map[transactionRecColumnId] as int; transactionId = map[transactionRecTransactionIdRef] as int; data = map[transactionRecColumnData] as String; createdAt = map[transactionRecColumnCreatedAt] as String; } int? id; int? transactionId; String? data; String? createdAt; Map toMap() { final Map map = { transactionRecTransactionIdRef: transactionId, transactionRecColumnData: data, transactionRecColumnCreatedAt: createdAt, }; if (id != null) { map[transactionRecColumnId] = id; } return map; } }