TestIssue.fromJson constructor

TestIssue.fromJson(
  1. Map _json
)

Implementation

TestIssue.fromJson(core.Map _json)
    : this(
        category: _json.containsKey('category')
            ? _json['category'] as core.String
            : null,
        errorMessage: _json.containsKey('errorMessage')
            ? _json['errorMessage'] as core.String
            : null,
        severity: _json.containsKey('severity')
            ? _json['severity'] as core.String
            : null,
        stackTrace: _json.containsKey('stackTrace')
            ? StackTrace.fromJson(
                _json['stackTrace'] as core.Map<core.String, core.dynamic>)
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
        warning: _json.containsKey('warning')
            ? Any.fromJson(
                _json['warning'] as core.Map<core.String, core.dynamic>)
            : null,
      );