from typing import (
    Dict,
    List,
    Optional,
)


class ActiveServicePeriod(object):

    def __init__(
        self,                           # type: ActiveServicePeriod
        service_period_id=None,         # type: Optional[int]
        sectors=None,                   # type: Optional[Dict]
        operator_id=None,               # type: Optional[int]
        operator_name=None,             # type: Optional[str]
        pos_ids=None,                   # type: Optional[List[int]]
    ):
        # type: (...) -> None

        self.service_period_id = service_period_id
        self.sectors = sectors if sectors is not None else {}
        self.operator_id = operator_id
        self.operator_name = operator_name
        self.pos_ids = pos_ids

    def to_dict(
        self,
    ):
        # type: (...) -> Dict

        return {"sectors": self.sectors}
