of_the_map static method

dynamic of_the_map(
  1. Map<dynamic, CandidType> record_map, {
  2. dynamic type_mode = false,
})

Implementation

static of_the_map(Map<dynamic, CandidType> record_map, {type_mode=false}) { // Map<String or int, CandidType>
    Record record = Record(type_mode: type_mode);
    for (MapEntry mkv in record_map.entries) { record[mkv.key] = mkv.value; }
    return record;
}