fromJson static method
Inherited by: StarSubscriptionTypeBot StarSubscriptionTypeChannel
Implementation
static StarSubscriptionTypeChannel? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return StarSubscriptionTypeChannel(
canReuse: (json['can_reuse'] as bool?) ?? false,
inviteLink: (json['invite_link'] as String?) ?? '',
);
}