allFromJson static method

List<HcMultipleSelectItem> allFromJson(
  1. List jsonList, {
  2. dynamic displayKey = 'display',
  3. dynamic valueKey = 'value',
  4. dynamic contentKey = 'content',
})

Implementation

static List<HcMultipleSelectItem> allFromJson(
  List jsonList, {
  displayKey = 'display',
  valueKey = 'value',
  contentKey = 'content',
}) {
  return jsonList
      .map((json) => HcMultipleSelectItem.fromJson(
            json,
            displayKey: displayKey,
            valueKey: valueKey,
            contentKey: contentKey,
          ))
      .toList();
}