# generated by datamodel-codegen:
#   filename:  data.json
#   timestamp: 2022-08-26T22:23:14+00:00

from __future__ import annotations

from typing import Any, List, Optional

from pydantic import BaseModel


class Datum(BaseModel):
    timestamp: Optional[int]
    art_level: Optional[int]
    complete: Optional[int]
    custom_fields: str
    exists: Optional[bool]
    export_id: Optional[int]
    exported_items: Optional[int]
    file_format: Optional[str]
    file_size: Optional[int]
    filename: Optional[Any]
    individual_files: Optional[int]
    media_info_level: Optional[int]
    media_type: Optional[str]
    media_type_title: Optional[str]
    metadata_level: Optional[int]
    rating_key: Optional[Any]
    section_id: Optional[int]
    thumb_level: Optional[int]
    title: Optional[str]
    total_items: Optional[int]
    user_id: Optional[Any]


class Data(BaseModel):
    draw: Optional[int]
    recordsTotal: Optional[int]
    recordsFiltered: Optional[int]
    data: Optional[List[Datum]]


class Response(BaseModel):
    result: str
    message: Any
    data: Data


class Model(BaseModel):
    response: Response
