fromJson static method

dynamic fromJson(
  1. dynamic value,
  2. String typeName,
  3. TypeContext context
)

Implementation

static dynamic fromJson(dynamic value, String typeName, TypeContext context) {
  var newContext = TypeContext(types: context.types, typeName: typeName,
      childContext: context.childContext)..addChildContext(_ctx);
  var converter = resolve(typeName, newContext);
  return converter.fromJson(value, newContext);
}