toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    "\$": "0x396ca5fc",
    "period": period,
    "followers": followers,
    "viewsPerPost": viewsPerPost,
    "sharesPerPost": sharesPerPost,
    "reactionsPerPost": reactionsPerPost,
    "viewsPerStory": viewsPerStory,
    "sharesPerStory": sharesPerStory,
    "reactionsPerStory": reactionsPerStory,
    "enabledNotifications": enabledNotifications,
    "growthGraph": growthGraph,
    "followersGraph": followersGraph,
    "muteGraph": muteGraph,
    "topHoursGraph": topHoursGraph,
    "interactionsGraph": interactionsGraph,
    "ivInteractionsGraph": ivInteractionsGraph,
    "viewsBySourceGraph": viewsBySourceGraph,
    "newFollowersBySourceGraph": newFollowersBySourceGraph,
    "languagesGraph": languagesGraph,
    "reactionsByEmotionGraph": reactionsByEmotionGraph,
    "storyInteractionsGraph": storyInteractionsGraph,
    "storyReactionsByEmotionGraph": storyReactionsByEmotionGraph,
    "recentPostsInteractions": recentPostsInteractions,
  };

  // Finished toJson.
  return returnValue;
}