InspectorIssue.fromJson constructor

InspectorIssue.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory InspectorIssue.fromJson(Map<String, dynamic> json) {
  return InspectorIssue(
    code: InspectorIssueCode.fromJson(json['code'] as String),
    details: InspectorIssueDetails.fromJson(
      json['details'] as Map<String, dynamic>,
    ),
    issueId:
        json.containsKey('issueId')
            ? IssueId.fromJson(json['issueId'] as String)
            : null,
  );
}