decode static method

dynamic decode(
  1. String buffer,
  2. Map<String, FactoryFunction>? factories
)

decode takes a JSON string and a map of factory functions and returns the object that was encoded in the JSON string. The factory functions are used to create objects of specific types. The factory functions are provided as a map where the keys are the type names and the values are functions that create objects of that type.

Implementation

static dynamic decode(
  String buffer,
  Map<String, FactoryFunction>? factories,
) {
  return _Reader(buffer, factories).object;
}