benchling_sdk.helpers.serialization_helpers module¶
- class DeserializableModel¶
- Bases: - dataclasses_json.api.DataClassJsonMixin- Provide an interface for deserialization to a custom model. - For deserializing models when using raw API calls (e.g., Benchling.api) Override deserialize() for customized behavior. 
- class DeserializableModelNoContent¶
- Bases: - benchling_sdk.helpers.serialization_helpers.DeserializableModel- Provide an interface deserialization to a custom model when the response may be empty. 
- class SerializableModel¶
- Bases: - dataclasses_json.api.DataClassJsonMixin- Provide an interface for serialization of a custom model. - For serializing models when using raw API calls (e.g., Benchling.api). Override serialize() for customized behavior. 
- array_query_param(inputs: Iterable[str]) str¶
- Collapse an Iterable to a comma-separated string. - Add leading and trailing quotes if the item contains â,â and not quoted 
- custom_fields(source: Dict[str, Any]) CustomFields¶
- Marshal a dictionary into a CustomFields object. 
- none_as_unset(val: Optional[benchling_sdk.helpers.serialization_helpers.T]) Union[benchling_sdk.helpers.serialization_helpers.T, benchling_api_client.v2.types.Unset]¶
- Convert a value to UNSET if None safely. 
- optional_array_query_param(inputs: Optional[Iterable[str]]) Optional[str]¶
- Collapse an Iterable to a comma-separated string if present. - Add leading and trailing quotes if the item contains â,â and not quoted 
