deserialize static method

ItemPreviewRequest deserialize(
  1. dynamic request
)

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),
  );
}