DashboardGadgetResponse.fromJson constructor

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

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() ??
        [],
  );
}