OwnershipModel.fromMap constructor Null safety
- Map<
String, dynamic> map
Builds a OwnershipModel from a map
.
It is used mainly for retrieving data from OwnershipRepository. The map strucure is
Map<String, dynamic> map = {
OwnershipRepository.columnSource : String,
OwnershipRepository.columnType : TikiSdkTypeEnum,
OwnershipRepository.columnOrigin : String,
OwnershipRepository.columnAbout : String,
OwnershipRepository.columnContains : List<String>,
OwnershipRepository.columnTransactionId : Uint8List,
}
Implementation
OwnershipModel.fromMap(Map<String, dynamic> map)
: source = map[OwnershipRepository.columnSource],
type = map[OwnershipRepository.columnType],
origin = map[OwnershipRepository.columnOrigin],
about = map[OwnershipRepository.columnAbout],
contains = map[OwnershipRepository.columnContains],
transactionId = map[OwnershipRepository.columnTransactionId];