fromJson static method
Implementation
static TermsOfService? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return TermsOfService(
text: FormattedText.fromJson(json['text'] as Map<String, dynamic>?)!,
minUserAge: (json['min_user_age'] as int?) ?? 0,
showPopup: (json['show_popup'] as bool?) ?? false,
);
}