LintResult.fromJson constructor

LintResult.fromJson(
  1. Map json_
)

Implementation

LintResult.fromJson(core.Map json_)
    : this(
        debugMessage: json_.containsKey('debugMessage')
            ? json_['debugMessage'] as core.String
            : null,
        fieldName: json_.containsKey('fieldName')
            ? json_['fieldName'] as core.String
            : null,
        level:
            json_.containsKey('level') ? json_['level'] as core.String : null,
        locationOffset: json_.containsKey('locationOffset')
            ? json_['locationOffset'] as core.int
            : null,
        severity: json_.containsKey('severity')
            ? json_['severity'] as core.String
            : null,
        validationUnitName: json_.containsKey('validationUnitName')
            ? json_['validationUnitName'] as core.String
            : null,
      );