# generated by datamodel-codegen:
#   filename:  data.json
#   timestamp: 2021-01-27T04:27:48+00:00

from __future__ import annotations

from typing import Any, List, Optional

from pydantic import BaseModel


class Datum(BaseModel):
    addedAt: Optional[str]
    art: Optional[Any]
    childCount: Optional[int]
    collectionMode: Optional[int]
    collectionSort: Optional[int]
    contentRating: Optional[str]
    guid: Optional[str]
    librarySectionID: Optional[str]
    librarySectionTitle: Optional[str]
    maxYear: Optional[int]
    minYear: Optional[int]
    ratingKey: Optional[int]
    subtype: Optional[str]
    summary: Optional[str]
    thumb: Optional[str]
    title: Optional[str]
    titleSort: Optional[str]
    type: Optional[str]
    updatedAt: Optional[str]


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


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


class Model(BaseModel):
    response: Response
