fromJson static method

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

Implementation

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

  return StoryInteraction(
    actorId:
        MessageSender.fromJson(json['actor_id'] as Map<String, dynamic>?)!,
    interactionDate: (json['interaction_date'] as int?) ?? 0,
    blockList:
        BlockList.fromJson(json['block_list'] as Map<String, dynamic>?),
    type:
        StoryInteractionType.fromJson(json['type'] as Map<String, dynamic>?)!,
  );
}