DataCollectionItem.fromYaml constructor
DataCollectionItem.fromYaml(
- YamlMap map
Implementation
factory DataCollectionItem.fromYaml(YamlMap map) {
return DataCollectionItem(
type: map['type'] as String,
purpose: map['purpose'] as String,
sharedWithThirdParties: map['shared_with_third_parties'] as bool,
optional: map['optional'] as bool,
linkedToIdentity: map['linked_to_identity'] as bool? ?? true,
);
}