Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EntitySerializer<EntityT, ComplexTypeNamespaceT>

Interface representing the return type of the builder function entitySerializer.

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

Type parameters

Hierarchy

  • EntitySerializer

Index

Methods

serializeComplexType

  • serializeComplexType(fieldValue: any, complexTypeNameSpace: ComplexTypeNamespaceT): any
  • Parameters

    • fieldValue: any
    • complexTypeNameSpace: ComplexTypeNamespaceT

    Returns any

serializeEntity

  • serializeEntity(entity: EntityT, entityConstructor: Constructable<EntityT, unknown>, diff?: boolean): Record<string, any>
  • Parameters

    • entity: EntityT
    • entityConstructor: Constructable<EntityT, unknown>
    • Optional diff: boolean

    Returns Record<string, any>

serializeEntityNonCustomFields

  • serializeEntityNonCustomFields(entity: EntityT, entityConstructor: Constructable<EntityT, unknown>): Record<string, any>
  • Parameters

    • entity: EntityT
    • entityConstructor: Constructable<EntityT, unknown>

    Returns Record<string, any>