Files
PiliPlus/lib/models_new/video/video_detail/dimension.dart
dom e9b5cffa91 tweaks
Signed-off-by: dom <githubaccount56556@proton.me>
2026-01-25 11:59:12 +08:00

19 lines
364 B
Dart

class Dimension {
int? width;
int? height;
bool? get cacheWidth {
if (width != null && height != null) {
return width! <= height!;
}
return null;
}
Dimension({this.width, this.height});
factory Dimension.fromJson(Map<String, dynamic> json) => Dimension(
width: json['width'] as int?,
height: json['height'] as int?,
);
}