DescribeSeverityLevelsResponse.fromJson constructor

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

Implementation

factory DescribeSeverityLevelsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeSeverityLevelsResponse(
    severityLevels: (json['severityLevels'] as List?)
        ?.whereNotNull()
        .map((e) => SeverityLevel.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}