copyWith method

SessionStatus copyWith({
  1. DateTime? dateTime,
  2. int? step,
  3. String? details,
  4. OcrData? ocr,
  5. OcrMrzValidation? validation,
  6. String? type,
  7. String? format,
  8. String? docNumber,
  9. String? firstName,
  10. String? lastName,
  11. String? birthDate,
  12. String? expiryDate,
  13. String? issueDate,
  14. String? countryCode,
  15. String? nationality,
  16. String? issuing,
  17. String? docCode,
  18. String? sex,
  19. String? optional,
  20. String? name,
  21. String? finalCheckValue,
  22. String? dateSexStr,
  23. String? line1,
  24. String? line2,
  25. String? line3,
  26. String? birthCheck,
  27. String? expCheck,
  28. String? numberCheck,
  29. String? finalCheck,
  30. String? logDetails,
})

Implementation

SessionStatus copyWith({
  DateTime? dateTime,
  int? step,
  String? details,
  OcrData? ocr,
  OcrMrzValidation? validation,
  String? type,
  String? format,
  String? docNumber,
  String? firstName,
  String? lastName,
  String? birthDate,
  String? expiryDate,
  String? issueDate,
  String? countryCode,
  String? nationality,
  String? issuing,
  String? docCode,
  String? sex,
  String? optional,
  String? name,
  String? finalCheckValue,
  String? dateSexStr,
  String? line1,
  String? line2,
  String? line3,
  String? birthCheck,
  String? expCheck,
  String? numberCheck,
  String? finalCheck,
  String? logDetails,
}) => SessionStatus(
  dateTime: dateTime ?? this.dateTime,
  step: step ?? this.step,
  details: details ?? this.details,
  ocr: ocr ?? this.ocr,
  validation: OcrMrzValidation.fromJson((validation ?? this.validation??OcrMrzValidation()).toJson()),
  type: type ?? this.type,
  format: format ?? this.format,
  docNumber: docNumber ?? this.docNumber,
  firstName: firstName ?? this.firstName,
  lastName: lastName ?? this.lastName,
  birthDate: birthDate ?? this.birthDate,
  expiryDate: expiryDate ?? this.expiryDate,
  issueDate: issueDate ?? this.issueDate,
  countryCode: countryCode ?? this.countryCode,
  nationality: nationality ?? this.nationality,
  issuing: issuing ?? this.issuing,
  docCode: docCode ?? this.docCode,
  sex: sex ?? this.sex,
  optional: optional ?? this.optional,
  name: name ?? this.name,
  finalCheckValue: finalCheckValue ?? this.finalCheckValue,
  dateSexStr: dateSexStr ?? this.dateSexStr,
  line1: line1 ?? this.line1,
  line2: line2 ?? this.line2,
  line3: line3 ?? this.line3,
  birthCheck: birthCheck ?? this.birthCheck,
  numberCheck: numberCheck ?? this.numberCheck,
  expCheck: expCheck ?? this.expCheck,
  finalCheck: finalCheck ?? this.finalCheck,
  logDetails: logDetails ?? this.logDetails,
);