ErrorRootCauseEntity.fromJson constructor

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

Implementation

factory ErrorRootCauseEntity.fromJson(Map<String, dynamic> json) {
  return ErrorRootCauseEntity(
    exceptions: (json['Exceptions'] as List?)
        ?.whereNotNull()
        .map((e) => RootCauseException.fromJson(e as Map<String, dynamic>))
        .toList(),
    name: json['Name'] as String?,
    remote: json['Remote'] as bool?,
  );
}