Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ToPojo<I, O>

Class that contains functions to turn a complex JavaScript object into a POJO (plain old javascript object), for serialization.

Generic types are the input type ("I"), and the output type ("O").

Type parameters

  • I

  • O

Hierarchy

  • ToPojo

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ToPojo<I, O>(): ToPojo<I, O>
  • Type parameters

    • I

    • O

    Returns ToPojo<I, O>

Properties

DEFAULT_TO_POJO_OPTIONS

DEFAULT_TO_POJO_OPTIONS: ToPojoOptions<I, O> = ...

Contains the default conversions

Methods

toPojo

  • Attempts to turn a complex JavaScript object, into a simple serializable one, by recursively walking through the object and running the provided conversions, or the default transformation.

    Will stop at the first matched conversion and then return the output of the transform function.

    Parameters

    Returns O

Generated using TypeDoc