ProductPhotoHolder.fromJson constructor

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

Implementation

ProductPhotoHolder.fromJson(Map<String, dynamic> json) {
  photoId = json['photoId'];
  sortIndex = json['sortIndex'];
  photo = json['photo'] != null ? PhotoDTO.fromJson(json['photo']) : null;
}