ModelMapping constructor

const ModelMapping({
  1. required String model,
  2. String? plural,
  3. @JsonKey(readValue: _oneSuffixReader) String? findUnique,
  4. @JsonKey(readValue: _oneSuffixReader) String? findUniqueOrThrow,
  5. @JsonKey(readValue: _oneSuffixReader) String? findFirst,
  6. @JsonKey(readValue: _oneSuffixReader) String? findFirstOrThrow,
  7. @JsonKey(readValue: _oneSuffixReader) String? findMany,
  8. @JsonKey(readValue: _oneSuffixReader) String? create,
  9. @JsonKey(readValue: _oneSuffixReader) String? createMany,
  10. @JsonKey(readValue: _oneSuffixReader) String? update,
  11. @JsonKey(readValue: _oneSuffixReader) String? updateMany,
  12. @JsonKey(readValue: _oneSuffixReader) String? upsert,
  13. @JsonKey(readValue: _oneSuffixReader) String? delete,
  14. @JsonKey(readValue: _oneSuffixReader) String? deleteMany,
  15. @JsonKey(readValue: _oneSuffixReader) String? aggregate,
  16. @JsonKey(readValue: _oneSuffixReader) String? groupBy,
  17. @JsonKey(readValue: _oneSuffixReader) String? count,
  18. @JsonKey(readValue: _oneSuffixReader) String? findRaw,
  19. @JsonKey(readValue: _oneSuffixReader) String? aggregateRaw,
})

Implementation

const factory ModelMapping({
  required String model,
  String? plural,
  @JsonKey(readValue: _oneSuffixReader) String? findUnique,
  @JsonKey(readValue: _oneSuffixReader) String? findUniqueOrThrow,
  @JsonKey(readValue: _oneSuffixReader) String? findFirst,
  @JsonKey(readValue: _oneSuffixReader) String? findFirstOrThrow,
  @JsonKey(readValue: _oneSuffixReader) String? findMany,
  @JsonKey(readValue: _oneSuffixReader) String? create,
  @JsonKey(readValue: _oneSuffixReader) String? createMany,
  @JsonKey(readValue: _oneSuffixReader) String? update,
  @JsonKey(readValue: _oneSuffixReader) String? updateMany,
  @JsonKey(readValue: _oneSuffixReader) String? upsert,
  @JsonKey(readValue: _oneSuffixReader) String? delete,
  @JsonKey(readValue: _oneSuffixReader) String? deleteMany,
  @JsonKey(readValue: _oneSuffixReader) String? aggregate,
  @JsonKey(readValue: _oneSuffixReader) String? groupBy,
  @JsonKey(readValue: _oneSuffixReader) String? count,
  @JsonKey(readValue: _oneSuffixReader) String? findRaw,
  @JsonKey(readValue: _oneSuffixReader) String? aggregateRaw,
}) = _ModelMapping;