toJson method

  1. @override
Map<String, Object?> toJson()
override

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,
    };