DashboardGadgetResponse.fromJson constructor
Implementation
factory DashboardGadgetResponse.fromJson(Map<String, Object?> json) {
return DashboardGadgetResponse(
gadgets: (json[r'gadgets'] as List<Object?>?)
?.map((i) => DashboardGadget.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}