StoryInteractionInfo.fromJson constructor

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

Parse from a json

Implementation

factory StoryInteractionInfo.fromJson(Map<String, dynamic> json) =>
    StoryInteractionInfo(
      viewCount: json['view_count'],
      recentViewerUserIds: List<int>.from(
          (json['recent_viewer_user_ids'] ?? [])
              .map((item) => item)
              .toList()),
    );