toPrimitive method

List toPrimitive()

Implementation

List<dynamic> toPrimitive() {
  final out = [];
  _inner.forEach((val) {
    if (val is KeyedArchive) {
      out.add(val.toPrimitive());
    } else if (val is ListArchive) {
      out.add(val.toPrimitive());
    } else {
      out.add(val);
    }
  });
  return out;
}