toJson method

  1. @override
Map<String, dynamic> toJson()
override

Convert to JSON-serializable map

Implementation

@override
Map<String, dynamic> toJson() => {
  'nodeType': nodeType,
  'offset': offset,
  'length': length,
  if (target != null) 'target': target!.toJson(),
  'cascadeSections': cascadeSections.map((c) => c.toJson()).toList(),
  'isNullAware': isNullAware,
};