toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (action != null) 'action': QueryAction.values.indexOf(action!),
    'providerArgs': providerArgs,
    if (where != null) 'where': where!.map((w) => w.toJson()).toList(),
  };
}