module:nmodule/converters/rc/Converter

module:nmodule/converters/rc/Converter

A base class for converters to extend from and override.

Constructor

(abstract) new (require("nmodule/converters/rc/Converter"))()

Source:
Extends:
  • baja.Struct

Extends

  • baja.Struct

Methods

(abstract) convert(from, to, cx) → {baja.Object|Promise.<baja.Object>|*}

Description:
  • Convert the first object to the second object's type.

Source:
Parameters:
Name Type Description
from baja.Object
to baja.Object
cx Object
Returns:
Type
baja.Object | Promise.<baja.Object> | *

init(from, to)

Description:
  • Gives the converter an opportunity to initialize itself based upon from
    and to types.

Source:
Parameters:
Name Type Description
from baja.Object
to baja.Object