Module: nmodule/converters/rc/Converter

A base class for converters to extend from and override.

API Status: Development


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

Extends:
  • baja.Struct

Methods


<abstract> convert(from, to, cx)

Convert the first object to the second object's type.

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

init(from, to)

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

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