toJson method

Map<String, dynamic> toJson ()

Implementation

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