Stories.fromJson constructor

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

Parse from a json

Implementation

factory Stories.fromJson(Map<String, dynamic> json) => Stories(
      totalCount: json['total_count'],
      stories: List<Story>.from((json['stories'] ?? [])
          .map((item) => Story.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );