toJson method

Map<String, Object?> toJson()

Implementation

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