AvailableDashboardGadgetsResponse.fromJson constructor

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

Implementation

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