CommunityId.fromJson constructor

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

Parses a CommunityId from TDLib JSON.

Implementation

factory CommunityId.fromJson(Map<String, dynamic> json) => CommunityId(
  id: _readInt(json['id']),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);