geost.bro.bro_geotop.Lithology.to_dict#

classmethod Lithology.to_dict(key: Literal['unit', 'value'] = 'value') dict#

Create a mapping dictionary from UnitEnum with “unit”: “value” or “value”: “unit” mapping.

Parameters:

key (Literal["unit", "value"], optional) – Determine what to use for “key” (“unit” or “value”). The default is “value”.

Return type:

dict