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(),
  if (index != null) 'index': index!.toJson(),
  'isCascaded': isCascaded,
  'isNullAware': isNullAware,
};