AddonHealth.fromJson constructor

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

Implementation

factory AddonHealth.fromJson(Map<String, dynamic> json) {
  return AddonHealth(
    issues: (json['issues'] as List?)
        ?.whereNotNull()
        .map((e) => AddonIssue.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}