Websites v4 docs v5.2.4
    Preparing search index...

    Hierarchy

    • default<void, void>
      • Lead
    Index

    Properties

    serializer: (model: any) => any

    serializer is a pure function that takes a model instance and returns a plain object that describes how to convert the model to JSON

    Methods

    • Retrieves a value from raw API data. Prioritises DBAPI data if available

      Parameters

      • key: string

      Returns any

    • Special method to define behaviour of JSON.stringify() on model instance

      Returns any

    • Parameters

      Returns Promise<
          | { errors: { message: string }[]; lead: null; message?: undefined }
          | { errors?: undefined; lead: null; message: {} }
          | { errors: null; lead: CustomLeadsApiResponse; message?: undefined },
      >

    • Parameters

      • __namedParameters: { activatedDomain: string; token: string }

      Returns Promise<{ errors: { message: string }[] | null }>