fromJson static method
Implementation
static FoundStories? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return FoundStories(
totalCount: (json['total_count'] as int?) ?? 0,
stories: List<Story>.from(
tdListFromJson(
json['stories'],
).map((item) => Story.fromJson(tdMapFromJson(item))).whereType<Story>(),
),
nextOffset: (json['next_offset'] as String?) ?? '',
);
}