fromJson static method
Implementation
static AvailableReaction? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return AvailableReaction(
type: ReactionType.fromJson(json['type'] as Map<String, dynamic>?)!,
needsPremium: (json['needs_premium'] as bool?) ?? false,
);
}