fromJson static method
Implementation
static ImageContent fromJson(String content) {
Map<String, dynamic> map = json.decode(content);
return ImageContent(
imageName: map["imageName"],
imagePath: map["imagePath"],
imageUrl: map["imageUrl"],
imageBytes: (map["imageBytes"] ?? []).cast<int>(),
width: map["width"],
height: map["height"],
size: map["size"],
);
}