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