Files
PiliPlus/lib/models/dynamics/opus_detail/container_size.dart
dom 40fb93f036 refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-04-26 14:54:22 +08:00

17 lines
368 B
Dart

class ContainerSize {
double? height;
double? width;
ContainerSize({this.height, this.width});
factory ContainerSize.fromJson(Map<String, dynamic> json) => ContainerSize(
height: (json['height'] as num?)?.toDouble(),
width: (json['width'] as num?)?.toDouble(),
);
Map<String, dynamic> toJson() => {
'height': height,
'width': width,
};
}