fromJson static method
Implementation
static StreamData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
final tagIds = json['tags_ids']?.map((it) => it).toList();
return StreamData(
id: json['id'],
userId: json['user_id'],
userLogin: json['user_login'],
userName: json['user_name'],
gameId: json['game_id'],
gameName: json['game_name'],
type: json['type'],
title: json['title'],
viewerCount: json['viewer_count'],
startedAt: json['started_at'],
language: json['language'],
thumbnailUrl: json['thumbnail_url'],
tagIds: tagIds,
isMature: json['is_mature'],
);
}