mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 11:22:16 +08:00
19 lines
413 B
Dart
19 lines
413 B
Dart
import 'package:PiliPlus/models_new/live/live_room_play_info/stream.dart';
|
|
|
|
class Playurl {
|
|
int? cid;
|
|
List<Stream>? stream;
|
|
|
|
Playurl({
|
|
this.cid,
|
|
this.stream,
|
|
});
|
|
|
|
factory Playurl.fromJson(Map<String, dynamic> json) => Playurl(
|
|
cid: json['cid'] as int?,
|
|
stream: (json['stream'] as List<dynamic>?)
|
|
?.map((e) => Stream.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
);
|
|
}
|