mapListFromJson static method

Map<String, List<ResetStatusSeriesModel>> mapListFromJson(
  1. dynamic json
)

Implementation

static Map<String, List<ResetStatusSeriesModel>> mapListFromJson(
    dynamic json) {
  final map = <String, List<ResetStatusSeriesModel>>{};
  if (json is Map && json.isNotEmpty) {
    json.cast<String, dynamic>().forEach((key, dynamic value) {
      map[key] = ResetStatusSeriesModel.listFromJson(value);
    });
  }
  return map;
}