Interface representing the return type of the builder function entitySerializer.

interface EntitySerializer {
    serializeComplexType: (<ComplexTypeNamespaceT>(fieldValue, complexTypeNameSpace) => any);
    serializeEntity: (<EntityT>(entity, entityApi, diff?) => Record<string, any>);
    serializeEntityNonCustomFields: (<EntityT>(entity, entityApi) => Record<string, any>);
}

Properties

serializeComplexType: (<ComplexTypeNamespaceT>(fieldValue, complexTypeNameSpace) => any)

Method to serialize a complex type to JSON.

Type declaration

serializeEntity: (<EntityT>(entity, entityApi, diff?) => Record<string, any>)

Converts an instance of an entity class into a JSON payload to be sent to an OData service.

Type declaration

    • <EntityT>(entity, entityApi, diff?): Record<string, any>
    • Type Parameters

      Parameters

      Returns Record<string, any>

serializeEntityNonCustomFields: (<EntityT>(entity, entityApi) => Record<string, any>)

Like EntitySerializer#serializeEntity ignoring custom fields.

Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.

Type declaration