mapListFromJson static method

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

Implementation

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