func (bulk *Bulk) ToJSON() []byte {
    data, err := json.Marshal(bulk)
    if err != nil {
        DebugLogger.Println("Can't convert logs bulk to JSON: ", err)
        return nil
    }
    return data
}
// ToJSON convert logs bulk to JSON format
ToJSON convert logs bulk to JSON format
// ToJSON convert logs bulk to JSON format
func (bulk *Bulk) ToJSON() []byte {
    data, err := json.Marshal(bulk)
    if err != nil {
        DebugLogger.Println("Can't convert logs bulk to JSON: ", err)
        return nil
    }
    return data
}
func ( bulk * Bulk ) ToJSON ( ) [ ] byte { data , err := json . Marshal ( bulk ) if err != nil { DebugLogger . Println ( " " , err ) return nil } return data }
ToJSON convert logs bulk to JSON format
ToJSON convert logs bulk to JSON format