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