fromJson static method

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

Implementation

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

  return InputStoryAreaTypeSuggestedReaction(
    reactionType: ReactionType.fromJson(tdMapFromJson(json['reaction_type'])),
    isDark: (json['is_dark'] as bool?) ?? false,
    isFlipped: (json['is_flipped'] as bool?) ?? false,
  );
}