<filename>ngl/models/base.py<gh_stars>10-100
import typing as tp


class BaseModel:

    @classmethod
    def load(cls, d: tp.Optional[dict]):
        if d is None:
            return None
        return cls(**d)

<filename>ngl/models/base.py<gh_stars>10-100
import typing as tp


class BaseModel:

    @classmethod
    def load(cls, d: tp.Optional[dict]):
        if d is None:
            return None
        return cls(**d)
