Files
PiliPlus/lib/models_new/emote/package.dart
bggRGjQaUbCoE b960359a39 opt models
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-06-05 14:44:56 +08:00

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(),
);
}