PropertyComparisonImages.fromJson constructor
PropertyComparisonImages.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PropertyComparisonImages.fromJson(Map<String, dynamic> json) => PropertyComparisonImages(
uuid: json['uuid'],
position: json['position'],
imageOld: PropertyContent<MediaResourceImage>.fromJson(json['image_old']),
imageNew: PropertyContent<MediaResourceImage>.fromJson(json['image_new']),
captionOld: PropertyContent<MediaResourceRichText>.fromJson(json['image_caption_old']),
captionNew: PropertyContent<MediaResourceRichText>.fromJson(json['image_caption_new']),
);