2021-11-11 22:48:23 -05:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
|
|
part of 'stream.dart';
|
|
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
2021-11-22 01:26:17 -05:00
|
|
|
StreamTwitch _$StreamTwitchFromJson(Map<String, dynamic> json) => StreamTwitch(
|
2021-11-18 22:13:01 -05:00
|
|
|
json['id'] as String,
|
|
|
|
|
json['user_id'] as String,
|
|
|
|
|
json['user_login'] as String,
|
|
|
|
|
json['user_name'] as String,
|
|
|
|
|
json['game_id'] as String,
|
|
|
|
|
json['game_name'] as String,
|
|
|
|
|
json['type'] as String,
|
|
|
|
|
json['title'] as String,
|
|
|
|
|
json['viewer_count'] as int,
|
|
|
|
|
json['started_at'] as String,
|
|
|
|
|
json['language'] as String,
|
|
|
|
|
json['thumbnail_url'] as String,
|
|
|
|
|
(json['tag_ids'] as List<dynamic>?)?.map((e) => e as String).toList(),
|
|
|
|
|
json['is_mature'] as bool,
|
2021-11-11 22:48:23 -05:00
|
|
|
);
|
2021-11-26 01:14:47 -05:00
|
|
|
|
|
|
|
|
StreamsTwitch _$StreamsTwitchFromJson(Map<String, dynamic> json) =>
|
|
|
|
|
StreamsTwitch(
|
|
|
|
|
(json['data'] as List<dynamic>)
|
|
|
|
|
.map((e) => StreamTwitch.fromJson(e as Map<String, dynamic>))
|
|
|
|
|
.toList(),
|
|
|
|
|
Map<String, String>.from(json['pagination'] as Map),
|
|
|
|
|
);
|