toJson method
Implementation
Map<String, Object?> toJson() => {
if (declarationLocationReference != null)
'declarationLocationReference': declarationLocationReference,
if (evaluateName != null) 'evaluateName': evaluateName,
if (indexedVariables != null) 'indexedVariables': indexedVariables,
if (memoryReference != null) 'memoryReference': memoryReference,
'name': name,
if (namedVariables != null) 'namedVariables': namedVariables,
if (presentationHint != null) 'presentationHint': presentationHint,
if (type != null) 'type': type,
'value': value,
if (valueLocationReference != null)
'valueLocationReference': valueLocationReference,
'variablesReference': variablesReference,
};