Returns a new ApiError instance.
ApiError({ this.attribute, this.type, this.details, this.message, });