UpdateTermsOfService.fromMap constructor

UpdateTermsOfService.fromMap(
  1. Map<String, dynamic> map
)

Implementation

UpdateTermsOfService.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  terms_of_service_id = map['terms_of_service_id'];
  if (map['terms_of_service'] != null) {
    terms_of_service = TdApiMap.fromMap(map['terms_of_service']) as TermsOfService;
  }
}