ModelMapping constructor
const
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,
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;