Home Reference Source
import {PassthroughFieldMapper} from 'tilla/src/fieldMapper/passthrough.field.mapper.js'
public class | source

PassthroughFieldMapper

Extends:

src/fieldMapper/field.mapper~FieldMapper → PassthroughFieldMapper

Mapper that just returns the value at the specified key on the provided source object

Method Summary

Public Methods
public

builder(instance: Object, key: string): Promise

Simply resolve the value at this key on the source object.

Public Methods

public builder(instance: Object, key: string): Promise source

Simply resolve the value at this key on the source object.

Params:

NameTypeAttributeDescription
instance Object

the source object.

key string

the key on the source whose value is being transformed.

Return:

Promise

a Promise that resolves to the value at that key on the source object.