fromJson static method
Implementation
static StoryInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return StoryInfo(
storyId: (json['story_id'] as int?) ?? 0,
date: (json['date'] as int?) ?? 0,
isForCloseFriends: (json['is_for_close_friends'] as bool?) ?? false,
isLive: (json['is_live'] as bool?) ?? false,
);
}