LichessGame class

Annotations
  • @freezed

Constructors

LichessGame({required String id, required bool rated, required LichessVariantKey variant, required LichessSpeed speed, required PerfType perf, required int createdAt, required int lastMoveAt, required LichessGameStatus status, required LichessGamePlayers players, List<int>? clocks, String? initialFen, LichessColor? winner, LichessGameOpening? opening, String? moves, LichessGameClock? clock})
const
factory
LichessGame.fromJson(Map<String, dynamic> json)
factory

Properties

clock LichessGameClock?
no setterinherited
clocks List<int>?
no setterinherited
copyWith → $LichessGameCopyWith<LichessGame>
no setterinherited
createdAt int
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
initialFen String?
no setterinherited
lastMoveAt int
no setterinherited
moves String?
no setterinherited
opening LichessGameOpening?
no setterinherited
perf PerfType
no setterinherited
players LichessGamePlayers
no setterinherited
rated bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed LichessSpeed
no setterinherited
status LichessGameStatus
no setterinherited
variant LichessVariantKey
no setterinherited
winner LichessColor?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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