ProductStatusData.fromJson constructor
ProductStatusData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ProductStatusData.fromJson(Map<String, dynamic> json) =>
ProductStatusData(
name: json['name'],
displayMfgServingSize: json['display_mfg_serving_size'],
displayNetWeight: json['display_net_weight'],
natfirstScore: json['natfirst_score']?.toDouble(),
natfirstRating: json['natfirst_rating']?.toDouble(),
iconFileName: json['icon_file_name'],
isFavorite: json['is_favorite'] ?? false,
rewardPoints: json['reward_points'],
isSuspended: json['is_suspended'] ?? false,
);