Convert to JSON-serializable map
@override Map<String, dynamic> toJson() => { 'nodeType': nodeType, 'offset': offset, 'length': length, 'mixinTypes': mixinTypes.map((m) => m.toJson()).toList(), };