@override Size? fromJson(Map<String, dynamic>? json) { if (json == null) return null; return Size( (json['width'] as num).toDouble(), (json['height'] as num).toDouble(), ); }