serializeJsonQuery function
JsonQuery
serializeJsonQuery({
- required DataModel datamodel,
- required JsonQueryAction action,
- String? modelName,
- 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 {}),
);
}