Quiz class

Annotations
  • @freezed

Constructors

Quiz({required String id, required String name, @Default('') String description, required Object content, required Ability ability, @Default(QuizStatus.unfinished) QuizStatus statusValidation, required List<DateTime> statusChanges})
const
factory
Quiz.fromJson(Json json)
factory

Properties

ability Ability
no setterinherited
content Object
no setterinherited
copyWith → $QuizCopyWith<Quiz>
no setterinherited
description String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
name String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusChanges List<DateTime>
no setterinherited
statusValidation QuizStatus
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