Options
All
  • Public
  • Public/Protected
  • All
Menu

FromJSON

Traverse a JSON struct and return value.

Configuration

interface IFromJSONConfig {
  propertyString?: string;
}

Example

const fromJSONDefault = Mappers.fromJson(); // FromJSON: propertyString:""

const fromJSONGetProperty = Mappers.fromJson({ propertyString: "myProperty" }); // FromJSON: propertyString:"myProperty"

const fromJSONTraversePropertyAndArray = Mappers.fromJson({ propertyString: "propertyWithArray.0" }); // FromJSON: propertyString:"propertyWithArray.0"

Hierarchy

  • FromJSON

Implements

Index

Constructors

constructor

  • new FromJSON(__namedParameters?: object): FromJSON

Properties

name

name: string = "JSON"

outputType

outputType: IOutputType = IOutputType.string

propertyString

propertyString: string = ""

Static description

description: string = "JSON"

Static id

id: string = "FROMJSON"

Methods

config

transform

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc