fromMap static method
override
Construct from Map.
Implementation
static TermsOfService? 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 text = FormattedText.fromMap(_map['text'])!;
var min_user_age = _map['min_user_age']! as int;
var show_popup = _map['show_popup']! as bool;
return TermsOfService(
extra: extra,
clientId: clientId,
text: text,
min_user_age: min_user_age,
show_popup: show_popup,
);
}