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