decode method Null safety

void decode(
  1. dynamic value
)

Ingests value into the properties of this type.

Override this method to provide decoding behavior other than the default behavior.

Implementation

void decode(dynamic value) {
  if (value is! Map) {
    throw ConfigurationException(
      this,
      "input is not an object (is a '${value.runtimeType}')",
    );
  }

  _runtime.decode(this, value);

  validate();
}