# AspectRatio.fromJson constructor

AspectRatio.fromJson(

1. Map<String, dynamic> json

)

## 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,
        );