fromJson static method

StarSubscriptionTypeChannel? fromJson(
  1. Map<String, dynamic>? json
)
override

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?) ?? '',
  );
}