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