mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-17 15:46:14 +08:00
22 lines
477 B
Dart
22 lines
477 B
Dart
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(),
|
|
);
|
|
}
|