l.a.w.m.InlineObjectFieldMarshaller(SimpleFieldMarshaller) : class documentation

Part of lp.app.webservice.marshallers View In Hierarchy

A marshaller that represents an object as a dict.

lazr.restful represents objects as URL references by default, but that isn't what we want in all cases.

To use this marshaller to read JSON input data, you must register an adapter from the expected top-level type of the loaded JSON data (usually dict) to the InlineObject field's schema. The adapter will be called with the deserialised input data, with all inner fields already converted as indicated by the schema.

Method unmarshall See IFieldMarshaller.
Method _marshall_from_json_data See SimpleFieldMarshaller.
def unmarshall(self, entry, value):
See IFieldMarshaller.
def _marshall_from_json_data(self, value):
See SimpleFieldMarshaller.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.