AspectRatio.fromJson constructor
Implementation
factory AspectRatio.fromJson(Map<String, dynamic> json) => AspectRatio(
width:
json.containsKey("width") ? (json["width"] as num).toDouble() : 1.0,
height: json.containsKey("height")
? (json["height"] as num).toDouble()
: 1.0,
);