mapFromJson static method

Map<String, ProvidedSeriesModel> mapFromJson(
  1. dynamic json
)

Implementation

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