of_the_map static method

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

Implementation

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