getFieldsComponentsMap method

Map<String, Object> getFieldsComponentsMap({
  1. List<String>? fields,
  2. List<String>? ignoreFields,
})
inherited

Implementation

Map<String, Object> getFieldsComponentsMap(
    {List<String>? fields, List<String>? ignoreFields}) {
  var map = Map<String, Object>.fromEntries(
      _listFieldsEntriesInContentDeepImpl(_content!.children));

  if (fields != null) {
    map.removeWhere((key, value) => !fields.contains(key));
  }

  if (ignoreFields != null) {
    map.removeWhere((key, value) => ignoreFields.contains(key));
  }

  return map;
}