factory Size.fromJson(Map<String, dynamic> json) => Size( width: (json["width"] as num).toDouble(), height: (json["height"] as num).toDouble(), );