ImageInfo.fromJson constructor

ImageInfo.fromJson(
  1. Map<String, dynamic> map,
  2. String? resolveAsset(
    1. String? path
    )
)

Implementation

ImageInfo.fromJson(
    Map<String, dynamic> map, String? resolveAsset(String? path))
    : aspectRatio = map["aspect_ratio"] ?? 0,
      filePath = resolveAsset(map["file_path"]),
      height = map["height"] ?? 0,
      iso = map["iso_639_1"],
      voteAverage = map["vote_average"] ?? 0,
      voteCount = map["vote_count"] ?? 0,
      width = map["width"] ?? 0;