general_lib_extension_updateForce method

void general_lib_extension_updateForce({
  1. required Map data,
})

Implementation

void general_lib_extension_updateForce({
  required Map data,
}) {
  data.forEach((key, value) {
    try {
      // jika ada value
      if (this[key] == null) {
        this[key] = value;
      } else if (value is Map && this[key] is Map) {
        (this[key] as Map).general_lib_extension_updateForce(data: value);
      } else if (key is List && this[key] is List) {
      } else {
        this[key] = value;
      }
    } catch (e) {}
  });
  return;
}