set method
Implementation
JsonMap<D> set(String key, D value,
[D Function(D old, D value)? onConflict]) {
if (containsKey(key)) {
this[key] = onConflict?.call(this[key] as D, value) ?? value;
} else {
putIfAbsent(key, () => value);
}
return this;
}