ConnectMetric constructor

ConnectMetric({
  1. Timestamp? date,
  2. int? numberOfRequests,
  3. int? numberOfConsentTrue,
  4. int? numberOfConsentFalse,
  5. int? numberOfAgeGroup1To12,
  6. int? numberOfAgeGroup13To19,
  7. int? numberOfAgeGroup20To29,
  8. int? numberOfAgeGroup30To39,
  9. int? numberOfAgeGroup40To49,
  10. int? numberOfAgeGroup50To59,
  11. int? numberOfAgeGroup60To69,
  12. int? numberOfAgeGroup70To79,
  13. int? numberOfAgeGroup80To89,
  14. int? numberOfAgeGroup90To99,
  15. int? numberOfAgeGroup100To120,
  16. int? numberOfFemales,
  17. int? numberOfMales,
  18. int? numberOfOthers,
  19. int? amountFromDk,
  20. int? amountFromNo,
  21. int? amountFromDe,
})

Implementation

factory ConnectMetric({
  $1.Timestamp? date,
  $core.int? numberOfRequests,
  $core.int? numberOfConsentTrue,
  $core.int? numberOfConsentFalse,
  $core.int? numberOfAgeGroup1To12,
  $core.int? numberOfAgeGroup13To19,
  $core.int? numberOfAgeGroup20To29,
  $core.int? numberOfAgeGroup30To39,
  $core.int? numberOfAgeGroup40To49,
  $core.int? numberOfAgeGroup50To59,
  $core.int? numberOfAgeGroup60To69,
  $core.int? numberOfAgeGroup70To79,
  $core.int? numberOfAgeGroup80To89,
  $core.int? numberOfAgeGroup90To99,
  $core.int? numberOfAgeGroup100To120,
  $core.int? numberOfFemales,
  $core.int? numberOfMales,
  $core.int? numberOfOthers,
  $core.int? amountFromDk,
  $core.int? amountFromNo,
  $core.int? amountFromDe,
}) {
  final _result = create();
  if (date != null) {
    _result.date = date;
  }
  if (numberOfRequests != null) {
    _result.numberOfRequests = numberOfRequests;
  }
  if (numberOfConsentTrue != null) {
    _result.numberOfConsentTrue = numberOfConsentTrue;
  }
  if (numberOfConsentFalse != null) {
    _result.numberOfConsentFalse = numberOfConsentFalse;
  }
  if (numberOfAgeGroup1To12 != null) {
    _result.numberOfAgeGroup1To12 = numberOfAgeGroup1To12;
  }
  if (numberOfAgeGroup13To19 != null) {
    _result.numberOfAgeGroup13To19 = numberOfAgeGroup13To19;
  }
  if (numberOfAgeGroup20To29 != null) {
    _result.numberOfAgeGroup20To29 = numberOfAgeGroup20To29;
  }
  if (numberOfAgeGroup30To39 != null) {
    _result.numberOfAgeGroup30To39 = numberOfAgeGroup30To39;
  }
  if (numberOfAgeGroup40To49 != null) {
    _result.numberOfAgeGroup40To49 = numberOfAgeGroup40To49;
  }
  if (numberOfAgeGroup50To59 != null) {
    _result.numberOfAgeGroup50To59 = numberOfAgeGroup50To59;
  }
  if (numberOfAgeGroup60To69 != null) {
    _result.numberOfAgeGroup60To69 = numberOfAgeGroup60To69;
  }
  if (numberOfAgeGroup70To79 != null) {
    _result.numberOfAgeGroup70To79 = numberOfAgeGroup70To79;
  }
  if (numberOfAgeGroup80To89 != null) {
    _result.numberOfAgeGroup80To89 = numberOfAgeGroup80To89;
  }
  if (numberOfAgeGroup90To99 != null) {
    _result.numberOfAgeGroup90To99 = numberOfAgeGroup90To99;
  }
  if (numberOfAgeGroup100To120 != null) {
    _result.numberOfAgeGroup100To120 = numberOfAgeGroup100To120;
  }
  if (numberOfFemales != null) {
    _result.numberOfFemales = numberOfFemales;
  }
  if (numberOfMales != null) {
    _result.numberOfMales = numberOfMales;
  }
  if (numberOfOthers != null) {
    _result.numberOfOthers = numberOfOthers;
  }
  if (amountFromDk != null) {
    _result.amountFromDk = amountFromDk;
  }
  if (amountFromNo != null) {
    _result.amountFromNo = amountFromNo;
  }
  if (amountFromDe != null) {
    _result.amountFromDe = amountFromDe;
  }
  return _result;
}