GetProductsResponse.fromJson constructor

GetProductsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetProductsResponse.fromJson(Map<String, dynamic> json) {
  return GetProductsResponse(
    formatVersion: json['FormatVersion'] as String?,
    nextToken: json['NextToken'] as String?,
    priceList: json['PriceList'] == null
        ? null
        : (json['PriceList'] as List)
            .map((v) => jsonDecode(v as String))
            .toList()
            .cast<Object>(),
  );
}