ConsentModel.fromMap constructor Null safety
- Map<
String, dynamic> map
Builds a ConsentModel based in a Map. Used mostly for database operations.
Implementation
ConsentModel.fromMap(Map<String, dynamic> map)
: ownershipId = map[ConsentRepository.columnOwnershipId],
destination = TikiSdkDestination.fromJson(
map[ConsentRepository.columnDestination]),
about = map[ConsentRepository.columnAbout],
reward = map[ConsentRepository.columnReward],
transactionId = map[ConsentRepository.columnTransactionId],
expiry = map[ConsentRepository.columnExpiry];