mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-25 18:48:43 +00:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
16
lib/models/dynamics/opus_detail/container_size.dart
Normal file
16
lib/models/dynamics/opus_detail/container_size.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user