MatchInfo.fromJson constructor

MatchInfo.fromJson(
  1. Map _json
)

Implementation

MatchInfo.fromJson(core.Map _json)
    : this(
        predefinedDetector: _json.containsKey('predefinedDetector')
            ? PredefinedDetectorInfo.fromJson(_json['predefinedDetector']
                as core.Map<core.String, core.dynamic>)
            : null,
        userDefinedDetector: _json.containsKey('userDefinedDetector')
            ? UserDefinedDetectorInfo.fromJson(_json['userDefinedDetector']
                as core.Map<core.String, core.dynamic>)
            : null,
      );