toJson method
Serializes this
as a JSON object.
Implementation
@override
Map<String, Object?> toJson() => {
'id': id,
'document': document,
'variables': variables,
'headers': headers,
'cancelToken': id,
if (apiName != null) 'apiName': apiName,
if (authorizationMode != null)
'authorizationMode': authorizationMode!.name,
if (decodePath != null) 'decodePath': decodePath,
};