toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final contains = this.contains;
  final eq = this.eq;
  final exists = this.exists;
  final neq = this.neq;
  return {
    if (contains != null) 'contains': contains,
    if (eq != null) 'eq': eq,
    if (exists != null) 'exists': exists,
    if (neq != null) 'neq': neq,
  };
}