fromMap static method
override
Construct from Map.
Implementation
static PollTypeQuiz? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var correct_option_id = _map['correct_option_id']! as int;
var explanation = FormattedText.fromMap(_map['explanation'])!;
return PollTypeQuiz(
extra: extra,
clientId: clientId,
correct_option_id: correct_option_id,
explanation: explanation,
);
}