Options
All
  • Public
  • Public/Protected
  • All
Menu

A generic parser to take annotated javascript objects and populate them with raw json data.

Hierarchy

Index

Constructors

constructor

Properties

Private log

log: Logger = Logger.create()

Methods

getArrayType

  • getArrayType(metaInfo: any): any

getValueType

  • getValueType(metaInfo: any): any
  • Not used much. Could be here for a map, but really do not want to see a map...

    Parameters

    • metaInfo: any

    Returns any

isArray

  • isArray(metaInfo: any): boolean

isObject

  • isObject(metaInfo: any): boolean

isPrimitive

  • isPrimitive(metaInfo: any): boolean

transfertoObject

  • transfertoObject(jsonobject: any, customobject: any, attachUnknownProperties: boolean): any
  • Parameters

    • jsonobject: any

      an object

    • customobject: any

      an object that is expected to have meta information attached to it. This meta information is obtained via getMetaInfo on the passed customobject.

    • attachUnknownProperties: boolean

      if true, then properties that are not recognized will still be attached to the returned object, or; if the top level customobject has no meta information, then a copy of the passed jsonobject will be returned.

    Returns any

Generated using TypeDoc