SizeWithAspect.fromJSON(Map<String, dynamic> json) : this(DoubleWithUnit.fromJSON(json['size']), (json['aspect'] as num).toDouble());