ProductViewDetail.fromJson constructor

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

Implementation

factory ProductViewDetail.fromJson(Map<String, dynamic> json) {
  return ProductViewDetail(
    createdTime: timeStampFromJson(json['CreatedTime']),
    productARN: json['ProductARN'] as String?,
    productViewSummary: json['ProductViewSummary'] != null
        ? ProductViewSummary.fromJson(
            json['ProductViewSummary'] as Map<String, dynamic>)
        : null,
    status: (json['Status'] as String?)?.toStatus(),
  );
}