toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final eq = this.eq;
  final equals = this.equals;
  final greaterThan = this.greaterThan;
  final greaterThanOrEqual = this.greaterThanOrEqual;
  final gt = this.gt;
  final gte = this.gte;
  final lessThan = this.lessThan;
  final lessThanOrEqual = this.lessThanOrEqual;
  final lt = this.lt;
  final lte = this.lte;
  final neq = this.neq;
  final notEquals = this.notEquals;
  return {
    if (eq != null) 'eq': eq,
    if (equals != null) 'equals': equals,
    if (greaterThan != null) 'greaterThan': greaterThan,
    if (greaterThanOrEqual != null) 'greaterThanOrEqual': greaterThanOrEqual,
    if (gt != null) 'gt': gt,
    if (gte != null) 'gte': gte,
    if (lessThan != null) 'lessThan': lessThan,
    if (lessThanOrEqual != null) 'lessThanOrEqual': lessThanOrEqual,
    if (lt != null) 'lt': lt,
    if (lte != null) 'lte': lte,
    if (neq != null) 'neq': neq,
    if (notEquals != null) 'notEquals': notEquals,
  };
}