toJsonQueryAction method

JsonQueryAction toJsonQueryAction()

Implementation

JsonQueryAction toJsonQueryAction() {
  return switch (this) {
    dmmf.ModelAction.findFirst => JsonQueryAction.findFirst,
    dmmf.ModelAction.findFirstOrThrow => JsonQueryAction.findFirstOrThrow,
    dmmf.ModelAction.findUnique => JsonQueryAction.findUnique,
    dmmf.ModelAction.findUniqueOrThrow => JsonQueryAction.findUniqueOrThrow,
    dmmf.ModelAction.findMany => JsonQueryAction.findMany,
    dmmf.ModelAction.create => JsonQueryAction.createOne,
    dmmf.ModelAction.createMany => JsonQueryAction.createMany,
    dmmf.ModelAction.createManyAndReturn =>
      JsonQueryAction.createManyAndReturn,
    dmmf.ModelAction.update => JsonQueryAction.updateOne,
    dmmf.ModelAction.updateMany => JsonQueryAction.updateMany,
    dmmf.ModelAction.delete => JsonQueryAction.deleteOne,
    dmmf.ModelAction.deleteMany => JsonQueryAction.deleteMany,
    dmmf.ModelAction.upsert => JsonQueryAction.upsertOne,
    dmmf.ModelAction.aggregate => JsonQueryAction.aggregate,
    dmmf.ModelAction.groupBy => JsonQueryAction.groupBy,
    dmmf.ModelAction.findRaw => JsonQueryAction.findRaw,
    dmmf.ModelAction.count => JsonQueryAction.aggregate,
    dmmf.ModelAction.aggregateRaw => JsonQueryAction.aggregateRaw,
  };
}