ResponseTimeRootCauseService.fromJson constructor
ResponseTimeRootCauseService.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResponseTimeRootCauseService.fromJson(Map<String, dynamic> json) {
return ResponseTimeRootCauseService(
accountId: json['AccountId'] as String?,
entityPath: (json['EntityPath'] as List?)
?.whereNotNull()
.map((e) =>
ResponseTimeRootCauseEntity.fromJson(e as Map<String, dynamic>))
.toList(),
inferred: json['Inferred'] as bool?,
name: json['Name'] as String?,
names: (json['Names'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
type: json['Type'] as String?,
);
}