serializeJsonQuery function

JsonQuery serializeJsonQuery({
  1. required DataModel datamodel,
  2. required JsonQueryAction action,
  3. String? modelName,
  4. Map? args,
})

Implementation

JsonQuery serializeJsonQuery({
  required dmmf.DataModel datamodel,
  required JsonQueryAction action,
  String? modelName,
  Map? args,
}) {
  final context = _Context(
    datamodel: datamodel,
    modelName: modelName,
    action: action,
  );

  return JsonQuery(
    action: action,
    modelName: modelName,
    query: _serializeFieldSelection(context, args ?? const {}),
  );
}