fromJson static method
Inherited by: ChatTypeBasicGroup ChatTypePrivate ChatTypeSecret ChatTypeSupergroup
Implementation
static ChatTypeSupergroup? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ChatTypeSupergroup(
supergroupId: (json['supergroup_id'] as int?) ?? 0,
isChannel: (json['is_channel'] as bool?) ?? false,
);
}