import 'package:get_it/get_it.dart'; import 'package:hiddingsel_app/appflow/model/images.dart'; import 'interfaces.dart'; class PointOfInterestModel with Name { final String name; final String? subtitle; final String text; final ImageModel image; final List otherImages; const PointOfInterestModel.withImageModel(this.name, this.subtitle, this.text, this.image, this.otherImages); PointOfInterestModel(this.name, this.subtitle, this.text, String imageResource, List otherImagesResources) : image = ImageModel(imageResource), otherImages = otherImagesResources.map((e) => ImageModel(e)).toList(); factory PointOfInterestModel.fromJson(Map json) { return PointOfInterestModel( json['name'] as String, json['subtitle'] as String?, json['text'] as String, json['assetThumbnailImage'] as String, (json['assetsOtherImages'] as List).cast(), ); } static final List values = GetIt.I>(); }