import 'package:PiliPlus/models_new/emote/emote.dart'; class Package { String? url; int? type; List? emote; Package({ this.url, this.type, this.emote, }); factory Package.fromJson(Map json) => Package( url: json['url'] as String?, type: json['type'] as int?, emote: (json['emote'] as List?) ?.map((e) => Emote.fromJson(e as Map)) .toList(), ); }