TermsOfService.fromJson constructor

TermsOfService.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory TermsOfService.fromJson(Map<String, dynamic> json) => TermsOfService(
      text: FormattedText.fromJson(json['text']),
      minUserAge: json['min_user_age'],
      showPopup: json['show_popup'],
    );