deserialize static method
Implementation
static ItemPreviewRequest deserialize(dynamic request) {
final map = request as Map;
return ItemPreviewRequest(
sessionId: map['sessionId'] as int,
itemId: map['itemId'] as int,
size: SizeExt.deserialize(map['size']),
fadeOutDelay: DurationExt.fromSeconds(map['fadeOutDelay'] as double),
fadeOutDuration:
DurationExt.fromSeconds(map['fadeOutDuration'] as double),
);
}