# RawImageLoadOptions.fromJson constructor

RawImageLoadOptions.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory RawImageLoadOptions.fromJson(Map<String, dynamic> json) =>
        RawImageLoadOptions(
          roi: json.containsKey("roi")
              ? Rectangle<int>(
                  ((json["roi"] as Map<String, dynamic>)["x"] as int),
                  ((json["roi"] as Map<String, dynamic>)["y"] as int),
                  ((json["roi"] as Map<String, dynamic>)["width"] as int),
                  ((json["roi"] as Map<String, dynamic>)["height"] as int))
              : Rectangle<int>(0, 0, 0, 0),
          orientation: json.containsKey("orientation")
              ? ImageRotation.values.byName(json["orientation"] as String)
              : ImageRotation.NONE,
        );