serializeAsMap method

Map<String, dynamic> serializeAsMap()

Implementation

Map<String, dynamic> serializeAsMap() => <String, dynamic>{
      'document': document,
      'variables': variables,
      'cancelToken': id,
      if (apiName != null) 'apiName': apiName,
    };