copyWith method

AiImage copyWith({
  1. String? imageId,
  2. String? imageName,
  3. String? claimId,
  4. String? url,
  5. List<double>? imageSize,
  6. String? partDirectionName,
  7. String? imageRangeName,
  8. String? totalItem,
  9. bool? damageExist,
  10. List<MaskData>? damageMasks,
  11. List<PartsMask>? partsMasks,
  12. bool? deletedFlag,
  13. DateTime? createdDate,
  14. DateTime? updatedDate,
  15. String? createdBy,
  16. double? timeProcess,
  17. List<String>? errorType,
  18. String? errorNote,
})

Implementation

AiImage copyWith({
  String? imageId,
  String? imageName,
  String? claimId,
  String? url,
  List<double>? imageSize,
  String? partDirectionName,
  String? imageRangeName,
  String? totalItem,
  bool? damageExist,
  List<MaskData>? damageMasks,
  List<PartsMask>? partsMasks,
  bool? deletedFlag,
  DateTime? createdDate,
  DateTime? updatedDate,
  String? createdBy,
  double? timeProcess,
  List<String>? errorType,
  String? errorNote,
}) =>
    AiImage(
      imageId: imageId ?? this.imageId,
      imageName: imageName ?? this.imageName,
      claimId: claimId ?? this.claimId,
      url: url ?? this.url,
      imageSize: imageSize ?? this.imageSize,
      partDirectionName: partDirectionName ?? this.partDirectionName,
      imageRangeName: imageRangeName ?? this.imageRangeName,
      totalItem: totalItem ?? this.totalItem,
      damageExist: damageExist ?? this.damageExist,
      damageMasks: damageMasks ?? this.damageMasks,
      partsMasks: partsMasks ?? this.partsMasks,
      deletedFlag: deletedFlag ?? this.deletedFlag,
      createdDate: createdDate ?? this.createdDate,
      updatedDate: updatedDate ?? this.updatedDate,
      createdBy: createdBy ?? this.createdBy,
      errorNote: errorNote ?? this.errorNote,
      timeProcess: timeProcess ?? this.timeProcess,
      errorType: errorType ?? this.errorType,
    );