datacube.index.abstract.AbstractProductResource.from_doc#
- AbstractProductResource.from_doc(definition, metadata_type_cache=None)[source]#
Construct unpersisted Product model from product metadata dictionary
- Parameters:
definition (
JsonDict) – a Product metadata dictionarymetadata_type_cache (
dict[str,MetadataType] |None) – a dict cache of MetaDataTypes to use in constructing a Product. MetaDataTypes may come from a different index.
- Return type:
- Returns:
Unpersisted product model