getFieldsKeysInMap method
Map<String, String?>
getFieldsKeysInMap(
- List<
String> fields, - Map<
String, Object?> map, { - @Deprecated("Ignored: computed per field") String? fieldLC,
- @Deprecated("Ignored: computed per field") String? fieldSimple,
- Map<
String, String> ? mapLC, - Map<
String, String> ? mapSimple,
inherited
Returns a Map of fields keys from map.
- The
fieldsare case insensitive. mapLCandmapSimple(indexes ofmap, seegetFieldKeyInMap) are shared by all thefields.fieldLCandfieldSimpleare ignored: they are the normalized forms of ONE field, computed per field (passing them used the same normalized key for every field).
Implementation
Map<String, String?> getFieldsKeysInMap(
List<String> fields,
Map<String, Object?> map, {
@Deprecated("Ignored: computed per field") String? fieldLC,
@Deprecated("Ignored: computed per field") String? fieldSimple,
Map<String, String>? mapLC,
Map<String, String>? mapSimple,
}) {
var fieldsMap = fields
.map(
(f) => MapEntry(
f,
getFieldKeyInMap(f, map, mapLC: mapLC, mapSimple: mapSimple),
),
)
.toMapFromEntries();
return fieldsMap;
}