Status.fromJson constructor

Status.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Status.fromJson(Map<String, Object?> json) {
  return Status(
    icon: json[r'icon'] != null
        ? Icon.fromJson(json[r'icon']! as Map<String, Object?>)
        : null,
    resolved: json[r'resolved'] as bool? ?? false,
  );
}