fromJson static method
Implementation
static ReactionNotificationSettings? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ReactionNotificationSettings(
messageReactionSource: ReactionNotificationSource.fromJson(
tdMapFromJson(json['message_reaction_source']),
),
storyReactionSource: ReactionNotificationSource.fromJson(
tdMapFromJson(json['story_reaction_source']),
),
pollVoteSource: ReactionNotificationSource.fromJson(
tdMapFromJson(json['poll_vote_source']),
),
soundId:
int.tryParse((json['sound_id'] as dynamic)?.toString() ?? '') ?? 0,
showPreview: (json['show_preview'] as bool?) ?? false,
);
}