frosty/lib/models/stream.g.dart
tommyxchow 3cf4961493 Rename Channel object to Stream
Channels represent any channel, offline or not. Streams represent live
channels, or streams, and is what is being requested for in the API.
2021-11-11 22:48:23 -05:00

25 lines
977 B
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'stream.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Stream _$StreamFromJson(Map<String, dynamic> json) => Stream(
id: json['id'] as String,
userId: json['user_id'] as String,
userLogin: json['user_login'] as String,
userName: json['user_name'] as String,
gameId: json['game_id'] as String,
gameName: json['game_name'] as String,
type: json['type'] as String,
title: json['title'] as String,
viewerCount: json['viewer_count'] as int,
startedAt: json['started_at'] as String,
language: json['language'] as String,
thumbnailUrl: json['thumbnail_url'] as String,
tagIds:
(json['tag_ids'] as List<dynamic>?)?.map((e) => e as String).toList(),
isMature: json['is_mature'] as bool,
);