mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-29 23:05:55 +08:00
12 lines
266 B
Dart
12 lines
266 B
Dart
class SizeSpec {
|
|
double? width;
|
|
double? height;
|
|
|
|
SizeSpec({this.width, this.height});
|
|
|
|
factory SizeSpec.fromJson(Map<String, dynamic> json) => SizeSpec(
|
|
width: (json['width'] as num?)?.toDouble(),
|
|
height: (json['height'] as num?)?.toDouble(),
|
|
);
|
|
}
|