ProductViewSummary.fromJson constructor
ProductViewSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ProductViewSummary.fromJson(Map<String, dynamic> json) {
return ProductViewSummary(
distributor: json['Distributor'] as String?,
hasDefaultPath: json['HasDefaultPath'] as bool?,
id: json['Id'] as String?,
name: json['Name'] as String?,
owner: json['Owner'] as String?,
productId: json['ProductId'] as String?,
shortDescription: json['ShortDescription'] as String?,
supportDescription: json['SupportDescription'] as String?,
supportEmail: json['SupportEmail'] as String?,
supportUrl: json['SupportUrl'] as String?,
type: (json['Type'] as String?)?.toProductType(),
);
}