Problem.fromJson constructor

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

Implementation

factory Problem.fromJson(Map<String, dynamic> json) {
  return Problem(
    affectedResource: json['AffectedResource'] as String?,
    endTime: timeStampFromJson(json['EndTime']),
    feedback: (json['Feedback'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(k.toFeedbackKey(), (e as String).toFeedbackValue())),
    id: json['Id'] as String?,
    insights: json['Insights'] as String?,
    resourceGroupName: json['ResourceGroupName'] as String?,
    severityLevel: (json['SeverityLevel'] as String?)?.toSeverityLevel(),
    startTime: timeStampFromJson(json['StartTime']),
    status: (json['Status'] as String?)?.toStatus(),
    title: json['Title'] as String?,
  );
}