export class MapReviver {
    nativeTypeName() {
        return "Map";
    }
    isInstance(value) {
        return value instanceof Map;
    }
    serialize(value) {
        return { __nativeType: this.nativeTypeName(), entries: Array.from(value.entries()) };
    }
    validate(value) {
        return Array.isArray(value.entries);
    }
    revive(value) {
        return new Map(value.entries);
    }
}
