mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 19:16:44 +08:00
21
lib/models_new/emote/package.dart
Normal file
21
lib/models_new/emote/package.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:PiliPlus/models_new/emote/emote.dart';
|
||||
|
||||
class Package {
|
||||
String? url;
|
||||
int? type;
|
||||
List<Emote>? emote;
|
||||
|
||||
Package({
|
||||
this.url,
|
||||
this.type,
|
||||
this.emote,
|
||||
});
|
||||
|
||||
factory Package.fromJson(Map<String, dynamic> json) => Package(
|
||||
url: json['url'] as String?,
|
||||
type: json['type'] as int?,
|
||||
emote: (json['emote'] as List<dynamic>?)
|
||||
?.map((e) => Emote.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user