fromJson static method
Inherited by: AffiliateTypeBot AffiliateTypeChannel AffiliateTypeCurrentUser
Implementation
static AffiliateTypeChannel? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return AffiliateTypeChannel(chatId: (json['chat_id'] as int?) ?? 0);
}