FaultRootCauseService.fromJson constructor
FaultRootCauseService.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FaultRootCauseService.fromJson(Map<String, dynamic> json) {
return FaultRootCauseService(
accountId: json['AccountId'] as String?,
entityPath: (json['EntityPath'] as List?)
?.whereNotNull()
.map((e) => FaultRootCauseEntity.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?,
);
}