TreeSitterQueryChildRule.fromJson constructor

TreeSitterQueryChildRule.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory TreeSitterQueryChildRule.fromJson(Map<String, Object?> json) =>
    TreeSitterQueryChildRule(
      multiple: _bool(json, 'multiple'),
      required: _bool(json, 'required'),
      types: _maps(
        json,
        'types',
      ).map(TreeSitterQueryNodeTypeRef.fromJson).toList(growable: false),
    );