# MrzFinderLayoutPreset.fromJson constructor

MrzFinderLayoutPreset.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory MrzFinderLayoutPreset.fromJson(Map<String, dynamic> json) {
      String _type = json["_type"];
      switch (_type) {
        case "TwoLineMRZFinderLayoutPreset":
          return TwoLineMrzFinderLayoutPreset.fromJson(json);
        case "ThreeLineMRZFinderLayoutPreset":
          return ThreeLineMrzFinderLayoutPreset.fromJson(json);
        case "NoLayoutPreset":
          return NoLayoutPreset.fromJson(json);
        default:
          throw ArgumentError("Invalid polymorphic type: $_type");
      }
    }