copyWith method
Implementation
ErrorDTO copyWith(
{String? errorVersion,
DateTime? timestamp,
int? statusCode,
String? message,
String? details,
dynamic exception}) {
return ErrorDTO(
errorVersion: errorVersion ?? this.errorVersion,
timestamp: timestamp ?? this.timestamp,
statusCode: statusCode ?? this.statusCode,
message: message ?? this.message,
details: details ?? this.details,
exception: exception ?? this.exception);
}