save method Null safety
- ConsentModel consent
Persists consent
in _db
.
Implementation
void save(ConsentModel consent) {
_db.execute('''
INSERT INTO $table
VALUES ( ?, ?, ?, ?, ?);
''', [
consent.ownershipId,
consent.destination.toString(),
consent.about,
consent.reward,
consent.transactionId
]);
}