# BufferImageLoadOptions.fromJson constructor

BufferImageLoadOptions.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory BufferImageLoadOptions.fromJson(Map<String, dynamic> json) =>
        BufferImageLoadOptions(
          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),
          loadMode: json.containsKey("loadMode")
              ? BufferLoadMode.values.byName(json["loadMode"] as String)
              : BufferLoadMode.EAGER,
        );