toJson method
Convert to JSON-serializable map
Implementation
@override
Map<String, dynamic> toJson() => {
'nodeType': nodeType,
'offset': offset,
'length': length,
if (condition != null) 'condition': condition!.toJson(),
if (thenExpression != null) 'thenExpression': thenExpression!.toJson(),
if (elseExpression != null) 'elseExpression': elseExpression!.toJson(),
};