SimulatedResult.fromJson constructor

SimulatedResult.fromJson(
  1. Map json_
)

Implementation

SimulatedResult.fromJson(core.Map json_)
    : this(
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        finding: json_.containsKey('finding')
            ? Finding.fromJson(
                json_['finding'] as core.Map<core.String, core.dynamic>)
            : null,
        noViolation: json_.containsKey('noViolation')
            ? Empty.fromJson(
                json_['noViolation'] as core.Map<core.String, core.dynamic>)
            : null,
      );