ErrorRootCauseService.fromJson constructor

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

Implementation

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