UniqueIndex class

Unique Index

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

Constructors

UniqueIndex({String? name, required List<String> fields})
Create a new unique index.
const
UniqueIndex.fromJson(Map<String, dynamic> json)
Unique index from JSON factory constructor.
factory

Properties

fields List<String>
Unique index fields.
final
hashCode int
The hash code for this object.
no setterinherited
name String?
Unique index 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>
Unique index as JSON map.
toString() String
Unique index as JSON string.
override

Operators

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