decodeNode method

FNode decodeNode(
  1. Map<String, dynamic> json
)

Implementation

FNode decodeNode(Map<String, dynamic> json) {
  final type = json['type'] as String?;
  final definition = type == null ? null : _nodes[type];
  if (definition == null) {
    throw StateError('No plugin registered for node type "$type"');
  }
  return definition.decode(json, this);
}