mirrored_repositories/wallpaper_store/lib
class WallpaperModel {
  String? photographer;
  String? photographer_url;
  int? photographer_id;
  SrcModel? src;

  WallpaperModel({
    this.photographer,
    this.photographer_url,
    this.photographer_id,
    this.src,
  });

  factory WallpaperModel.fromMap(Map<String, dynamic> jsonData) {
    return WallpaperModel(
        src: SrcModel.fromMap(jsonData["src"]),
        photographer_url: jsonData["photographer_url"],
        photographer_id: jsonData["photographer_id"],
        photographer: jsonData["photographer"]);
  }
}

class SrcModel {
  String original;
  String small;
  String portrait;
  String landscape;
  String medium;

  SrcModel(
      {required this.original, required this.small, required this.portrait, required this.landscape, required this.medium});

  factory SrcModel.fromMap(Map<String, dynamic> jsonData) {
    return SrcModel(
        original: jsonData["original"],
        small: jsonData["small"],
        portrait: jsonData["portrait"],
        landscape: jsonData["landscape"],
        medium: jsonData["medium"]);
  }
}
