ExecutionResult.fromJson constructor

ExecutionResult.fromJson(
  1. Map json_
)

Implementation

ExecutionResult.fromJson(core.Map json_)
    : this(
        documentationUrl: json_.containsKey('documentationUrl')
            ? json_['documentationUrl'] as core.String
            : null,
        resource: json_.containsKey('resource')
            ? Resource.fromJson(
                json_['resource'] as core.Map<core.String, core.dynamic>)
            : null,
        rule: json_.containsKey('rule') ? json_['rule'] as core.String : null,
        severity: json_.containsKey('severity')
            ? json_['severity'] as core.String
            : null,
        violationDetails: json_.containsKey('violationDetails')
            ? ViolationDetails.fromJson(json_['violationDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        violationMessage: json_.containsKey('violationMessage')
            ? json_['violationMessage'] as core.String
            : null,
      );