copyWith method

SmileData copyWith({
  1. String? firstName,
  2. String? lastName,
  3. String? country,
  4. String? idNumber,
  5. String? idType,
  6. String? userId,
  7. String? jobId,
  8. String? tag,
  9. int? jobType,
  10. Environment? environment,
  11. Map<String, dynamic>? additionalValues,
  12. CaptureType? captureType,
  13. String? callbackUrl,
})

Implementation

SmileData copyWith({
  String? firstName,
  String? lastName,
  String? country,
  String? idNumber,
  String? idType,
  String? userId,
  String? jobId,
  String? tag,
  int? jobType,
  Environment? environment,
  Map<String, dynamic>? additionalValues,
  CaptureType? captureType,
  String? callbackUrl,
}) {
  return SmileData(
    firstName: firstName ?? this.firstName,
    lastName: lastName ?? this.lastName,
    country: country ?? this.country,
    idNumber: idNumber ?? this.idNumber,
    idType: idType ?? this.idType,
    userId: userId ?? this.userId,
    jobId: jobId ?? this.jobId,
    tag: tag ?? this.tag,
    jobType: jobType ?? this.jobType,
    environment: environment ?? this.environment,
    additionalValues: additionalValues ?? this.additionalValues,
    captureType: captureType ?? this.captureType,
  );
}