Contains the methods to build an entity.

Type Parameters

Constructors

  • Type Parameters

    • EntityT extends EntityBase
    • DeSerializersT extends DeSerializers<
          any,
          any,
          any,
          any,
          any,
          any,
          any,
          any,
          any,
          any,
          any,
          any,
          any,
          any,
      >

    Parameters

    Returns EntityBuilder<EntityT, DeSerializersT>

Properties

_entity: EntityT

Methods

  • Builds the entity.

    Returns EntityT

    The entity.

  • Builds an entity from JSON representation. If you have obtained the JSON object as a request payload use the entityDeserializer methods. Note that fields not mappable to a field in the target entity are silently ignored.

    Parameters

    Returns EntityT

    EntityBase constructed from JSON representation.

  • Sets the custom fields for the entity.

    Parameters

    • customFields: Record<string, any>

      The custom fields you want to add.

    Returns this

    The entity builder itself for method chaining.

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