def parse_project_attributes_from_dict()

in experiments/google/cloud/ml/applied/model/domain_model.py [0:0]


def parse_project_attributes_from_dict(obj: dict) -> ProductAttributes:
    out = ProductAttributes()

    for k in obj.keys():
        out.product_attributes.append(
            AttributeValue(attribute_name=k, attribute_value=obj[k])
        )
    return out