Interface representing the return type of the builder function entitySerializer.

Hierarchy

  • EntitySerializer

Properties

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

Type declaration

    • <ComplexTypeNamespaceT>(fieldValue: any, complexTypeNameSpace: ComplexTypeNamespaceT): any
    • Method to serialize a complex type to JSON.

      Type Parameters

      Parameters

      • fieldValue: any
      • complexTypeNameSpace: ComplexTypeNamespaceT

      Returns any

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

Type declaration

    • <EntityT>(entity: EntityT, entityApi: EntityApi<EntityT, any>, diff?: boolean): Record<string, any>
    • Converts an instance of an entity class into a JSON payload to be sent to an OData service.

      Type Parameters

      Parameters

      • entity: EntityT
      • entityApi: EntityApi<EntityT, any>
      • Optional diff: boolean

      Returns Record<string, any>

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

Type declaration

    • <EntityT>(entity: EntityT, entityApi: EntityApi<EntityT, any>): Record<string, any>
    • Like serializeEntity ignoring custom fields.

      Type Parameters

      Parameters

      • entity: EntityT
      • entityApi: EntityApi<EntityT, any>

      Returns Record<string, any>

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