imagesFromJson static method

  1. @Deprecated('Use allImagesFromJson instead')
List<ProductImage>? imagesFromJson(
  1. Map? json
)

Returns ProductImages from a JSON map for "Images".

For historical reasons we keep only the 4 main images here, on all sizes and languages.

Implementation

// TODO: deprecated from 2023-11-25; remove when old enough
@Deprecated('Use allImagesFromJson instead')
static List<ProductImage>? imagesFromJson(Map? json) => allImagesFromJson(
      json,
      onlyMain: true,
    );