yMapNew method

YMap yMapNew({
  1. JsonObject? init,
})

Implementation

YMap yMapNew({
  JsonObject? init,
}) {
  final results = _yMapNew([
    (init == null
        ? const None().toWasm()
        : Option.fromValue(init).toWasm((some) => some.toWasm()))
  ]);
  final result = results[0];
  return YMap.fromJson(result);
}