from typing import Optional
from tdw_catalog.team import Team
import tdw_catalog.metadata_template.organization_team as organization_team
import tdw_catalog.metadata_template.field as field
[docs]class Field(
field.RecommendedTemplateMetadataField[Team],
organization_team.Field,
):
"""
The :class:`.Team` that owns the data license
Attributes
----------
None
"""
def __init__(self, key: str, default_value: Optional[Team],
optional: Optional[bool]) -> None:
super().__init__(key, default_value, optional)
def serialize(self) -> dict:
res = super().serialize()
res["recommended_type"] = "contractOwner"
return res