ErrorRootCause.fromJson constructor

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

Implementation

factory ErrorRootCause.fromJson(Map<String, dynamic> json) {
  return ErrorRootCause(
    clientImpacting: json['ClientImpacting'] as bool?,
    services: (json['Services'] as List?)
        ?.whereNotNull()
        .map((e) => ErrorRootCauseService.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}