fromJson static method

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

Implementation

static ChatBoostSourcePremium? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return ChatBoostSourcePremium(userId: (json['user_id'] as int?) ?? 0);
}