copyWith method
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,
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,
);