DiagnosticMessage.fromJson constructor
DiagnosticMessage.fromJson(
- Map json_
Implementation
DiagnosticMessage.fromJson(core.Map json_)
: this(
info: json_.containsKey('info')
? LocalizedString.fromJson(
json_['info'] as core.Map<core.String, core.dynamic>)
: null,
metric: json_.containsKey('metric')
? LocalizedString.fromJson(
json_['metric'] as core.Map<core.String, core.dynamic>)
: null,
metricSpecific: json_.containsKey('metricSpecific')
? json_['metricSpecific'] as core.bool
: null,
severity: json_.containsKey('severity')
? json_['severity'] as core.String
: null,
shortMessage: json_.containsKey('shortMessage')
? LocalizedString.fromJson(
json_['shortMessage'] as core.Map<core.String, core.dynamic>)
: null,
);