Size jsonToSize(Map<String, dynamic> data) { return Size(asT<double>(data['width']), asT<double>(data['height'])); }