toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.operationName != null) {
json[r'operationName'] = this.operationName;
} else {
json[r'operationName'] = null;
}
if (this.query != null) {
json[r'query'] = this.query;
} else {
json[r'query'] = null;
}
if (this.variables != null) {
json[r'variables'] = this.variables;
} else {
json[r'variables'] = null;
}
return json;
}