DataCollectionItem.fromYaml constructor

DataCollectionItem.fromYaml(
  1. 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,
  );
}