Template constructor

Template({
  1. TemplateId? id,
  2. String? name,
  3. Ad_AdState? state,
  4. Scanner_ScannerType? scannerType,
  5. CategoryId? baseCategoryId,
  6. CategoryId? brandCategoryId,
  7. bool? hidden,
  8. int? targetScanTimeInSeconds,
  9. ConfigurationId? configurationId,
  10. bool? inferMetadataOnCreation,
})

Implementation

factory Template({
  $0.TemplateId? id,
  $core.String? name,
  $2.Ad_AdState? state,
  $3.Scanner_ScannerType? scannerType,
  $0.CategoryId? baseCategoryId,
  $0.CategoryId? brandCategoryId,
  $core.bool? hidden,
  $core.int? targetScanTimeInSeconds,
  $0.ConfigurationId? configurationId,
  $core.bool? inferMetadataOnCreation,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (name != null) result.name = name;
  if (state != null) result.state = state;
  if (scannerType != null) result.scannerType = scannerType;
  if (baseCategoryId != null) result.baseCategoryId = baseCategoryId;
  if (brandCategoryId != null) result.brandCategoryId = brandCategoryId;
  if (hidden != null) result.hidden = hidden;
  if (targetScanTimeInSeconds != null)
    result.targetScanTimeInSeconds = targetScanTimeInSeconds;
  if (configurationId != null) result.configurationId = configurationId;
  if (inferMetadataOnCreation != null)
    result.inferMetadataOnCreation = inferMetadataOnCreation;
  return result;
}