Source code for bungieapi.generated.components.schemas.interpolation

# generated by update to not change manually
import dataclasses as dt
import typing as t

from bungieapi.json import to_json


[docs]@dt.dataclass(frozen=True) class InterpolationPoint: value: t.Optional[int] = None weight: t.Optional[int] = None
[docs] def to_json(self) -> t.Mapping[str, t.Any]: return { "value": to_json(self.value), "weight": to_json(self.weight), }
[docs]@dt.dataclass(frozen=True) class InterpolationPointFloat: value: t.Optional[float] = None weight: t.Optional[float] = None
[docs] def to_json(self) -> t.Mapping[str, t.Any]: return { "value": to_json(self.value), "weight": to_json(self.weight), }