mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
17 lines
368 B
Dart
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,
|
|
};
|
|
}
|