serialize method

void serialize(
  1. dynamic val
)

Implementation

void serialize(dynamic val) {
  if (val is Map) {
    serializeMap(val);
  } else if (val is Iterable) {
    serializeIterable(val);
  } else {
    serializeData(val);
  }
}