PrimaryKey class

Field primary key.

Annotations
  • @JsonSerializable(createFactory: true, createToJson: true, explicitToJson: true)

Constructors

PrimaryKey({String? name, required List<String> fields})
Create a new primary key.
const
PrimaryKey.fromJson(Map<String, dynamic> json)
Primary key from JSON factory constructor.
factory

Properties

fields List<String>
Primary key fields.
final
hashCode int
The hash code for this object.
no setterinherited
name String?
Prisma key name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Primary key as JSON map.
toString() String
Primary key as JSON string.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited