TweetEntities.fromJson constructor

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

Implementation

factory TweetEntities.fromJson(Map<String, dynamic> json) => TweetEntities(
      hashtags: json["hashtags"] == null
          ? []
          : new List<HashtagEntity>.from(
              json["hashtags"].map((x) => HashtagEntity.fromJson(x))),
      symbols: json["symbols"] == null
          ? []
          : new List<SymbolEntity>.from(
              json["symbols"].map((x) => SymbolEntity.fromJson(x))),
      userMentions: json["user_mentions"] == null
          ? []
          : new List<MentionEntity>.from(
              json["user_mentions"].map((x) => MentionEntity.fromJson(x))),
      urls: json["urls"] == null
          ? []
          : new List<UrlEntity>.from(
              json["urls"].map((x) => UrlEntity.fromJson(x))),
      media: json["media"] == null
          ? []
          : new List<MediaEntity>.from(
              json["media"].map((x) => MediaEntity.fromJson(x))),
    );