toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final query = this.query;
  final type = this.type;
  return {
    'Query': query,
    'Type': type.toValue(),
  };
}